Learn R Programming

mefa (version 1.0-4)

amf: 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.

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.

Details

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

See Also

mefa

Examples

Run this code
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")

Run the code above in your browser using DataLab