I need to replace the NA\'s in the raster object (r) from the example below.
NA
r
library(raster) filename <- system.file(\"external/test
A more memory safe approach (for large files) would be to use reclassify:
library(raster) filename <- system.file("external/test.grd", package="raster") r <- raster(filename) rna <- reclassify(r, cbind(NA, 250))