amf {mefa}R Documentation

Extract and Attach Marginal Statistics and Attribute Table From Object of Class 'mefa'

Description

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

Usage

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

Arguments

x an object of class 'mefa'.
which switch 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 itself. 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

attach, 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-2 Index]