[R-sig-Geo] replace NA with closest value

Alfredo Alessandrini alfreale74 at gmail.com
Tue Jun 7 15:09:00 CEST 2011


Hi,

I need to write a function to use with calc (raster package) that
replace the NA value of the raster with the value closest to it.

Any suggestion on how to write it?


thanks,

Alfredo



More information about the R-sig-Geo mailing list