Calibration sampling


I would like to calibrate my sample in R with the regression method:

X = c (105,106,108,110,115)
d = c (10,10,15,10,11)
popTotals = c (10000)

weightsLinear = calib (X, d, popTotals, method = "linear", description = TRUE)
weighted.mean (X, weightsLinear)

How to have the total rectified?

Thank you
"Calibrating a sample" is not a statistical term. You can calibrate a model, not a sample. What exactly are you trying to achieve?
I did a sample based on a partial population in order to calculate a Total.

I would now like to correct it based on the Total of the variable popTotal.