activeCat.Rd
Get or set the active category of a multi-categorical SpatRaster layer
# S4 method for SpatRaster
activeCat(x, layer=1)
# S4 method for SpatRaster
activeCat(x, layer=1)<-value
SpatRaster
positive integer, the layer number or name
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
integer