[R] interpolating a lot of data at once

From: David Hugh-Jones <davidhughjones_at_gmail.com>
Date: Thu 01 Jun 2006 - 01:29:41 EST

I have a big dataset containing a lot of values for 1970, 1980 and 1990. I want to interpolate values for the years in between, and also if possible to extrapolate to 1968 and 1969. The method doesn't have to be clever but I am looking for a function that will do all the data at once. (Doing foreach, or apply, is just too slow!) Is there something that will take

list(df$val.1970, df$val.1980, df$val.1990)

as inputs and output an interpolated matrix?


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 Received on Thu Jun 01 01:51:49 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 01 Jun 2006 - 04:10:34 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.