R/as.ts.permat.R

`as.ts.permat` <-
    function(x, type = "bray", ...)
{
    type <- match.arg(type, c("bray", "chisq"))
    out <- summary(x)[[type]]
    if (!is.ts(out)) {
        seqmethods <- c("swap", "tswap", "abuswap")
        stop("as.ts available only for sequential methods ",
            paste(seqmethods, collapse=", "))
    } 
    out
}
pattakosn/Rworkshop documentation built on May 24, 2019, 8:22 p.m.