Learn R Programming

terra (version 0.8-5)

depth: depth of SpatRaster layers

Description

Get or set the depth of the layers of a SpatRaster. Experimental.

Usage

# S4 method for SpatRaster
depth(x, ...)

# S4 method for SpatRaster depth(x)<-value

Arguments

x

SpatRaster

value

numeric vector

...

additional arguments. None implemented

Value

numeric

See Also

time

Examples

Run this code
# 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