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
translation of the matlab PPVAL function
2 messages · pecqueur@esbs.u-strasbg.fr, Martin Maechler
1 day later
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