sites Vegsoup {vegsoup} | R Documentation |
Vegsoup*
Objects Accessor and replacement methods acting on slot 'sites'.
## S4 method for signature 'Vegsoup' sites(obj) ## S4 replacement method for signature 'Vegsoup' sites(obj) <- value
obj |
A |
value |
An object of class |
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.
For sites(obj)
a data.frame,
and for the replacement method an object depending on the input class.
Roland Kaiser
require(vegsoup) data(barmstein) x <- barmstein # use replacemnet to shuffe order rownames(x) sites(x) <- sites(x)[sample(rownames(x)), ] rownames(x)