Re: [R] Scriptable Integration

2012-02-10 Thread Hasan Diwan
Michael, On 10 February 2012 18:11, R. Michael Weylandt wrote: > I'm not quite sure what you mean, but perhaps this will help: > spf <- splinefun(mydata$V2) > splInt <- function(low, up) integrate(spf, low, up)$value Sort of, I'm looking to get the nth order integral, where the only thing I know

Re: [R] Scriptable Integration

2012-02-10 Thread R. Michael Weylandt
I'm not quite sure what you mean, but perhaps this will help: library(splines) mydata <- structure(list(V1 = c(1328565067, 1328565067.05, 1328565067.1, 1328565067.15, 1328565067.2, 1328565067.25), V2 = c(0.0963890795246276, 0.227296347215609, 0.240972698811569, 0.221208948983498, 0.230898231782485