Skip to content
Prev 171767 / 398502 Next

interpSpline with dates?

It certainly appears that you just _did_ use it as such. You got a  
spline. The only error thrown was from predict() and I think that was  
because you needed to use a bit of extra coercion.

 > predict(sp, x=as.numeric(as.POSIXct("2008-08-02")))
$x
[1] 1217649600

$y
[1] -0.4748701

attr(,"class")
[1] "xyVector"