InterpolateMatrix {greenbrown} | R Documentation |
This function interpolates missing values in a matrix with the mean of the neighbouring matrix cells.
InterpolateMatrix(m)
m |
a matrix with NA value to interpolate |
matrix with interpolated values
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
m <- matrix(1:25, 5, 10) m[sample(1:50, 10)] <- NA m InterpolateMatrix(m)