Hi,
I've to replace NA value with zero in some raster.
I use the raster package.
Is there a faster method than this:
funNA <- function(x) {x[is.na(x)] <- 0; return(x)}
test <- calc(test,funNA)
Alfredo
NA raster replace
3 messages · Alfredo Alessandrini, Wilfried Thuiller, Matteo Mattiuzzi
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110510/2bdcb784/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110511/c72a58ce/attachment.pl>