Skip to content
Prev 284959 / 398502 Next

Scriptable Integration

Michael,
On 10 February 2012 18:11, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
Sort of, I'm looking to get the nth order integral, where the only
thing I know about n is that it is greater than 1, but in practise
will be under 4. Something like:
spf <- rep(splinefun(myData$V2, times=(n-1))
splInt <- integrate(spf, min(myData$V2), max(myData$V3))

However, I can't seem to figure out how to get splinefun to evaluate
itself. Hope that's clearer and thanks for the help!