Method will also return group column with spp data if it exists.

Data can be assigned independent of whether groups are used or not. Since groups information is stored separately in groups slot, groups information must also be updated independently.

sppdata(x, group.names = FALSE)

sppdata(x) <- value

# S4 method for Zvariant
sppdata(x, group.names = FALSE)

# S4 method for Zvariant,data.frame
sppdata(x) <- value

Arguments

x

Zvariant object.

group.names

boolean indicating whether group codes (FALSE) or names (TRUE) are used to indicate group. (default: FALSE)

value

data frame that must match the number and names of columns in sppdata (see sppdata .

Value

Data frame (object's spp.data)

Note

Everytime spp data is set, groups information is deleted as there is now straightforward way of preserving and/or imputing group information.

See also