FALSE
, all other values become TRUE
)
You can provide the standard additional arguments: filename, format, overwrite, and progress.as.logical
r <- raster(nrow=10, ncol=10)
r[] <- round(runif(ncell(r)))
r <- as.logical(r)
Run the code above in your browser using DataLab