amf {mefa}R Documentation

Extracts and Attaches Marginal Statistics and Attribute Table From an Object of Class 'mefa'

Description

This function extracts and attaches data from an object of class 'mefa'.

Usage

amf(x, which = "samples", attach = FALSE)

Arguments

x an object of class 'mefa'.
which selector for attribute table, either "samples" (default) or "species".
attach logical, see value for details.

Details

If attribute table is NULL, an error message is given.

Value

Result is a data frame with respective marginal statistics (see , in mefa documentation) and the attribute table. If attach=FALSE (default) a data frame is created, if attach=TRUE, the resulting data frame is made and attached.

Author(s)

Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/

See Also

mefa

Examples

## Not run: 
data(landsnail, vsample, vtable)

(vmf <- mefa(vt <- as.xcount(vtable, FALSE),
xorder(vt, which="samples", vsample, 1),
xorder(vt, which="species", landsnail, 2)))

amf(vmf)
amf(vmf,attach=TRUE)
srichn

amf(vmf, "species")
## End(Not run)

[Package mefa version 1.1-0 Index]