R/as.ts.permat.R

Defines functions `as.ts.permat`

`as.ts.permat` <-
    function(x, type = "bray", ...)
{
    type <- match.arg(type, c("bray", "chisq"))
    out <- summary(x)[[type]]
    if (!is.ts(out)) {
        seqmethods <- sapply(make.commsim(), function(z) make.commsim(z)$isSeq)
        seqmethods <- names(seqmethods)[seqmethods]
        ## seqmethods <- c("swap", "tswap", "abuswap")
        stop(gettextf("as.ts available only for sequential methods %s",
                      paste(seqmethods, collapse=", ")))
    }
    out
}

Try the vegan package in your browser

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

vegan documentation built on May 29, 2024, 7:28 a.m.