Usage
# S4 method for SpatRaster
set.names(x, value, index=1:nlyr(x), validate=FALSE)
# S4 method for SpatRasterDataset
set.names(x, value, index=1:length(x), validate=FALSE)
# S4 method for SpatVector
set.names(x, value, index=1:ncol(x), validate=FALSE)# S4 method for SpatRaster
set.ext(x, value)
# S4 method for SpatVector
set.ext(x, value)
# S4 method for SpatRaster
set.crs(x, value)
# S4 method for SpatVector
set.crs(x, value)
# S4 method for SpatRaster
set.values(x, cells, values)
# S4 method for SpatRaster
set.cats(x, layer=1, value, index)