Active category
activeCat.Rd
Get or set the active category of a multi-categorical SpatRaster layer
Usage
# S4 method for class 'SpatRaster'
activeCat(x, layer=1)
# S4 method for class 'SpatRaster'
activeCat(x, layer = 1) <- value
Arguments
- x
SpatRaster
- layer
positive integer, the layer number or name
- value
positive integer or character, indicating which column in the categories to use. Note that when a number is used this index is zero based, and "1" refers to the second column. This is because the first column of the categories has the cell values, not categorical labels