depth function

depth of SpatRaster layers

depth of SpatRaster layers

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

Arguments

  • x: SpatRaster
  • value: numeric vector

Returns

numeric

See Also

time

Examples

s <- rast(system.file("ex/logo.tif", package="terra")) depth(s) <- 1:3 depth(s)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26