I have a data frame with three measurements throughout the year and I would like to make an interpolation between these dates to get values every two months. I used the approx function, but I don't know how to include the values in the correct position of the data.frame. Can anyone help me?
I used the script below:
approx(fev17[bloco=1&trat==1],set17[bloco=1&trat==1], method="linear", rule=1, f=0, ties="ordered", yleft = 0, yright = 0, n=32)
I don't understand the argument "xout" of the function "approx".
Thanks!