Learn R Programming

raster (version 3.6-30)

clearValues: Clear values

Description

Clear cell values of a Raster* object from memory

Usage

clearValues(x)

Value

a Raster* object

Arguments

x

Raster* object

See Also

values, replacement

Examples

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

Run the code above in your browser using DataLab