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

Arguments

x

Zvariant object.

value

numeric vector of group ids. Vector length must match to the number of features, no recycling is done.

Value

A numeric vector containing the group ids. If there are no groups, return NA.

See also