Hi,
 
?focalNA
 
will help you more than calc() here
 
cheers, Matteo


>>> Alfredo Alessandrini <alfreale74@gmail.com> 07.06.2011 15:09 >>>
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

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

	[[alternative HTML version deleted]]

