Returns values in the cat
column of a vector in GRASS.
.vCats(x, layer = 1, db = FALSE, integer = TRUE)
A vector.
A GVector
or the name of a vector in GRASS.
Integer, numeric integer, or character: Layer from which to obtain category values.
Logical: If TRUE
, return category numbers from the database table associated with the vector. If FALSE
(default), return category numbers from the actual vector.
Logical: If TRUE
(default), return category values as integers. In some cases, a geometry can have multiple categories, in which case NA
is returned. If FALSE
, return category values as strings (and thus, if a geometry has more than one category, does not convert to NA
).