sites: Methods for the Sites Slot of 'Vegsoup*' Objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Accessor and replacement methods acting on slot 'sites'.

Usage

1
2
3
4
## S4 method for signature 'Vegsoup'
sites(obj)
## S4 replacement method for signature 'Vegsoup'
sites(obj) <- value

Arguments

obj

A Vegsoup* object.

value

An object of class "data.frame".

Details

The value object in the replacement function needs to have rownames matching rownames(obj). The order is respected and leads to reordering of the object to which the value object is assigned.

Value

For sites(obj) a data.frame, and for the replacement method an object depending on the input class.

Author(s)

Roland Kaiser

See Also

Vegsoup

Examples

1
2
3
4
5
6
7
8
9
require(vegsoup)

data(barmstein)
x <- barmstein

# use replacemnet to shuffe order
rownames(x)
sites(x) <- sites(x)[sample(rownames(x)), ]
rownames(x)

vegsoup documentation built on Feb. 24, 2021, 3 a.m.