Which cells have the minumum / maximum value (for a RasterLayer), or which layer has the minimum/maximum value (for a RasterStack or RasterBrick)?
which.min and which.max return the index of the first layer that has the min or max value for a cell. This can be problematic if there are ties.
In you want the index of all the layers that have the min or max value, use whiches.min or whiches.max (only for objects with less than 10 layers).
1 2 3 4
additional arguments (none implemented)
(which.*): vector of cell numbers (if
x is a RasterLayer). 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.
(whiches.*). An integer in which each digit represents a layer. For example, 35 means "layers 3 and 5"
There is a limit to accurate integer number representation. Therefore, do not use
whiches.* with more than 15 layers.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.