[R] interpolation function

From: <jonathenwu_at_hotmail.com>
Date: Fri 05 Aug 2005 - 22:12:02 EST


Hi,
I have a sparse matrix.I want to fill values into the entries whose value is 0.The new generated values should come from the interpolation of the values have existed.Does R provide such interpolation functions which operate on Matrix, for example ,such a matrix below  0 0 0 0 2.3 0 0 0 0
 0 0 3.1 0 0 0 0 1.4 0
 0 0 0 0 0 0 0 0 0
1.1 0 0 0 0 0 0 0 0
 0 0 0 4 0 0 0 0 6
 0 0 0 0 0 0 0 0 0

 0 0 0 0 0 7 0 0 0
 0 3 0 0 0 0 6 0 0
 0 0 0 0 9 0 0 0 0
thanks a lot
hao wu



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 Fri Aug 05 22:20:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:42 EST