Learn R Programming

zonator (version 0.6.0)

sppdata: Simple getter mehtod for spp data in a class Zvariantobject.

Description

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.

Usage

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)

See Also

Zvariant-class