[R] interpolation issue

uday uday_143_4u at hotmail.com
Wed Apr 18 12:55:07 CEST 2012


This moment I got stuck with one interpolation issue
the sample data which I have is as follows

pre1  <- c(10.34615 , 52.02116, 146.17357, 243.28644, 347.41504, 431.67105,
521.42712, 629.00446 ,729.95941,                            827.86279,
921.55078, 956.44446) 
pre2  <- c( 983.4477692, 973.6199013, 958.0722141, 938.8194208 ,915.1833983,
852.1671089, 765.0037479,                                  654.0372907,
526.7369169, 397.0581990, 279.9788079, 229.5127059,185.2578164 ,147.2534510 
,115.1949457,  88.5712513,  66.7337287,  49.0140828, 23.3535195 , 
0.6609724) 

I have tried approx function
approx(pres, sci.pre)
Error in xy.coords(x, y) : 'x' and 'y' lengths differ 

I am looking for interpolated output with 1 x 19  demotions . 

does somebody knows how to deal with this issue ?
Thanks 

Uday 

--
View this message in context: http://r.789695.n4.nabble.com/interpolation-issue-tp4567362p4567362.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list