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

Description Usage Arguments Value Note Author(s) See Also

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

1
2
3
4
5
6
7
8
9
sppdata(x, group.names = FALSE)

sppdata(x) <- value

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

## S4 replacement method for signature '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.

Author(s)

Joona Lehtomaki joona.lehtomaki@gmail.com

See Also

Zvariant-class


zonator documentation built on July 8, 2020, 6:18 p.m.