Tobin,

In the raster package you can use the focalNA function. It sets the
focal (neighborhood) value, according to a specified function (e.g.
mean), to cells with NA.

raster is available on R-Forge:  install.packages("raster",
repos="http://R-Forge.R-project.org";)

Robert

On Thu, Nov 19, 2009 at 6:16 AM, Tobin Cara <cara.to...@epfl.ch> wrote:
> Hello,
>
> Would anyone know a good way to fill in holes within a DTM? There is no data 
> inside these holes and it is affecting my calculations, so I prefer for an 
> interpolation of the nearest neighbors to fill in a value or something 
> similar.
>
> Thank you,
>
> Cara
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

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

Reply via email to