Get index of raster layers
Arguments
- layer
Integer, numeric, logical, or character: Refers to one or more layers.
- x
A
GRaster
.- recycle
Logical: If
TRUE
(default), andlayer
is logical and smaller in number than the number of layers, then recycle the vector oflayer
.- negate
Logical: If
TRUE
, return indices of all layers not identified inlayer
.