powered by
FALSE
TRUE
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