Re: [R] Interpolation Function f(y)

2008-09-04 Thread ermimi
Thank you very much, You have helped me to resolve the problem. Thank you!! A greetings, Luismi Henrique Dallazuanna wrote: > > 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 <[EMAIL PROTECTED]> wrote: > >>

Re: [R] Interpolation Function f(y)

2008-09-04 Thread Henrique Dallazuanna
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 <[EMAIL PROTECTED]> 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

[R] Interpolation Function f(y)

2008-09-04 Thread ermimi
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(2