where {terra} | R Documentation |
This method returns the cell numbers for the cells with the min or max values of a SpatRaster.
## S4 method for signature 'SpatRaster'
where.min(x, list)
## S4 method for signature 'SpatRaster'
where.max(x, list)
x |
SpatRaster |
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)