pecqueur@esbs.u-strasbg.fr
2006-Feb-09 09:53 UTC
[R] translation of the matlab PPVAL function
Hello, I am trying to translate a matlab program into R, and I have some problems to find out how to translate the PPVAL function. I know that ppval(pp,xx) returns the value at the points xx of the piecewise polynomial contained in pp( constructed by spline), but I don't know how to do the same thing in R. Thanks for you help Delphine
Martin Maechler
2006-Feb-10 10:25 UTC
[R] splines in R {"translation of the matlab PPVAL function"}
Probably ?spline and the builtin spline() function is already sufficient for you. If you need more, use the (standard R) 'splines' package: library(splines) library(help = splines)>>>>> "pecqueur" == pecqueur <pecqueur at esbs.u-strasbg.fr> >>>>> on Thu, 9 Feb 2006 10:53:45 +0100 (CET) writes:pecqueur> Hello, pecqueur> I am trying to translate a matlab program into R, and I have some problems pecqueur> to find out how to translate the PPVAL function. pecqueur> I know that ppval(pp,xx) returns the value at the points xx of the pecqueur> piecewise polynomial contained in pp( constructed by spline), but I don't pecqueur> know how to do the same thing in R. pecqueur> Thanks for you help pecqueur> Delphine