powered by
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.
TRUE
# S4 method for SpatRaster which.lyr(x)
SpatRaster
isTRUE, which, See Summary-methods for which.min and which.max
isTRUE
which
Summary-methods
which.min
which.max
# NOT RUN { s <- rast(system.file("ex/logo.tif", package="terra")) x <- which.lyr(s > 100) # }
Run the code above in your browser using DataLab