Zvariant
instance.If the particular variant doesn't use groups or doesn't have them assigned, return NA. Note that here 'groups' means the first column in Zonation groups file ('output group').
groups(x)groups(x) <- value
# S4 method for Zvariant
groups(x)
# S4 method for Zvariant,numeric
groups(x) <- value
Zvariant object.
numeric vector of group ids. Vector length must match to the number of features, no recycling is done.
A numeric vector containing the group ids. If there are no groups, return NA.