Hello

I am currently translating some Matlab code into R and would like to know
what people would recommend as the equivalent in R for spline(x,y,xx) in
matlab. The latter performs a cubic spline interpolation where x,y are the
given data vectors and xx is the new abscissa vector.
It allows for the definition of end conditions in y, which is very useful.
I tried using spline and splinefun from the splines R package but I cannot
see how to specify the endslopes in this case and I get different results
than I do with matlab, as the curve seems to lift over the max value and
then drop to the max value in the end.

Any help would be much appreciated

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to