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_@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.
>
> ______________________________________________
> R-help@r-project.org 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paranį-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

