Which cells are TRUE?
This method returns a single layer SpatRaster with cell values that are the first layer in the input that has the value is not zero (FALSE), and, hence, is TRUE
.
## S4 method for signature 'SpatRaster' which.lyr(x)
x |
SpatRaster |
SpatRaster
isTRUE
, which
, See Summary-methods
for which.min
and which.max
s <- rast(system.file("ex/logo.tif", package="terra")) x <- which.lyr(s > 100)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.