powered by
Get or set the depth of the layers of a SpatRaster. Experimental.
# S4 method for SpatRaster depth(x, ...)# S4 method for SpatRaster depth(x)<-value
# S4 method for SpatRaster depth(x)<-value
SpatRaster
numeric vector
additional arguments. None implemented
numeric
time
# NOT RUN { s <- rast(system.file("ex/logo.tif", package="terra")) depth(s) <- 1:3 depth(s) # }
Run the code above in your browser using DataLab