sites Vegsoup {vegsoup}R Documentation

Methods for the Sites Slot of Vegsoup* Objects

Description

Accessor and replacement methods acting on slot 'sites'.

Usage

## 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

require(vegsoup)

data(barmstein)
x <- barmstein

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


[Package vegsoup version 0.2-9 Index]