I think that you can use the splinefun function:
f <- splinefun(x, y)
f(15)
On Thu, Sep 4, 2008 at 1:52 PM, ermimi <ermimi_ en hotmail.com> wrote:
Hello friends!!!
I have a list of values called y.
The list is y=c(221.0, 212.0, 206.0, 202.7, 198.4, 195.1, 192.2, 189.7,
187.6, 185.8);
y is f(x) and x=c(10,20,30,40,50,60,70,80,90,100).
I only have x and y. I don?t know f(x). I would like interpolate f(x) to
obtain other values as f(15), f(25), f(35) and if it was possible obtain
f(110), f(120).
is there any function that allow me obtain this values??
Thank you very much, Luismi
--
View this message in context:
http://www.nabble.com/Interpolation-Function-f%28y%29-tp19314985p19314985.html
Sent from the R help mailing list archive at Nabble.com.