[R] Function built with segments

thierrydb thierrydb at gmail.com
Fri Dec 14 16:19:56 CET 2007


Hello,


I'm new to R. If I have a set of 10 points (X(i), Y(i)), is there an elegant
way to build a function y=f(x) that would be build out of the consecutive
segments of X(j),Y(j) points (with X(j) sorted)?


Thank you very much

TDB


-- 
View this message in context: http://www.nabble.com/Function-built-with-segments-tp14337780p14337780.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list