depth | R Documentation |
Get or set the depth of the layers of a SpatRaster. Experimental.
## S4 method for signature 'SpatRaster'
depth(x)
## S4 replacement method for signature 'SpatRaster'
depth(x)<-value
## S4 method for signature 'SpatRaster'
depthName(x)
## S4 replacement method for signature 'SpatRaster'
depthName(x)<-value
## S4 method for signature 'SpatRaster'
depthUnit(x)
## S4 replacement method for signature 'SpatRaster'
depthUnit(x)<-value
x |
SpatRaster |
value |
numeric vector ( |
numeric or SpatRaster
time
s <- rast(nlyr=3)
depth(s) <- c(0, pi/2, pi)
depth(s)
depthName(s) <- "angle"
depthUnit(s) <- "radians"
s
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.