Which cells have the minumum / maximum value (for a RasterLayer), or which layer has the minimum/maximum value (for a RasterStack or RasterBrick)?
Usage
which.min(x)
which.max(x)
Arguments
x
Raster* object
Value
vector of cell numbers (if x is a RasterLayer) or (if x is a RasterStack or RasterBrick) a RasterLayer giving the number of the first layer with the minimum or maximum value for a cell