Hi Tom,
At least to me it?s hard to picture what?s wrong without further
details regarding your data. I use spline/linear interpolation of
time series regularly, so maybe this example help you out.
[1] 1 4 69 131 194 256 320 382
[1] 0.1211 0.1213 0.1233 0.1241 0.1250 0.1254 0.1255 0.1255
approx(x=ci_x, y=ci_y, n=ci_x[length(ci_x)])$y
Regards,
Filipe.
-----Mensagem original-----
De: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
project.org] Em nome de tomtomme
Enviada em: quarta-feira, 29 de junho de 2011 12:28
Para: r-help at r-project.org
Assunto: [R] time series interpolation
Hi there,
I?ve got a datatable in R which I try to interpolate with this and
get the
Error below:
new$temp<- approx(w03_11temp$temp, n = (nrow(w03_11temp)*5))$y