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
x |
SpatRaster |
value |
numeric vector |
numeric
time
s <- rast(system.file("ex/logo.tif", package="terra"))
depth(s) <- 1:3
depth(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.