as.logical: Change cell values to logical or integer values
Description
Change values of a Raster* object to logical or integer values. With as.logical, zero becomes FALSE, all other values become TRUE. With as.integer values are truncated.
Usage
# S4 method for Raster
as.logical(x, filename='', ...)
# S4 method for Raster
as.integer(x, filename='', ...)