Learn R Programming

mefa (version 1.1-4)

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

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.

Details

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

See Also

attach, 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