Clear cell values of a Raster* object from memory

clearValues(x)

Arguments

x

Raster* object

See also

values, replacement

Value

a Raster* object

Examples

r <- raster(ncol=10, nrow=10)
values(r) <- 1:ncell(r)
r <- clearValues(r)