layer {vegsoup} | R Documentation |
Simply return the layer for each observation in slot species.
## S4 method for signature 'Vegsoup' layer(obj, ...) ## S4 method for signature 'Vegsoup' layernumber(obj, ...)
obj |
|
... |
passed from to methods. |
Method layer
simply returns the layer for each observation, equivalent
to species(obj)$layer
. layernumber
returns layer assignments as
an ordered integer.
layer
and layernumber
return a vector equal in length to
nrow(species(obj))
.
The function will be renamed to avoid typos with method layers
or
even dropped – it is not very useful and simple minded?
Roland Kaiser
data(barmstein) x <- barmstein # check the number of occurences per layer table(layer(x)) # alternative table(species(x)$layer) # layer as integer layernumber(x)