where | R Documentation |
This method returns the cell numbers for the cells with the min or max values of each layer in a SpatRaster.
## S4 method for signature 'SpatRaster'
where.min(x, values=TRUE, list=FALSE)
## S4 method for signature 'SpatRaster'
where.max(x, values=TRUE, list=FALSE)
x |
SpatRaster |
values |
logical. If |
list |
logical. If |
matrix or list
which
and Summary-methods
for which.min
and which.max
f <- system.file("ex/elev.tif", package="terra")
r <- rast(f)
where.min(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.