R/as.mefa.default.R

Defines functions `as.mefa.default`

`as.mefa.default` <-
function(x, samp, taxa, ...)
{
    if (inherits(x, "mefa")) {
        ss <- if (dim(x)[3] > 1)
            melt.mefa(x) else x$xtab
        if (missing(samp))
            samp <- x$samp
        if (missing(taxa))
            taxa <- x$taxa
        y <- mefa(ss, samp, taxa, ...)
        y$call <- match.call()
        } else {
            y <- mefa(x, ...)
            y$call <- match.call()
        }
    return(y)
}

Try the mefa package in your browser

Any scripts or data that you put into this service are public.

mefa documentation built on May 2, 2019, 5 p.m.