R/summary.decorana.R

"summary.decorana" <-
    function (object, digits = 3, origin = TRUE, display = c("both", 
                                                 "species", "sites", "none"), ...) 
{
    display <- match.arg(display)
    print(object)
    if (origin) {
        object$cproj <- sweep(object$cproj, 2, object$origin, 
                              "-")
        object$rproj <- sweep(object$rproj, 2, object$origin, 
                              "-")
    }
    tmp <- list()
    if (display == "both" || display == "species") {
        tmp$spec.scores <- object$cproj
        tmp$spec.priorweights <- object$v
        tmp$spec.totals <- object$adotj
    }
    if (display == "both" || display == "sites") {
        tmp$site.scores <- object$rproj
        tmp$site.totals <- object$aidot
    }
    tmp$digits <- digits
    class(tmp) <- "summary.decorana"
    tmp
}

Try the vegan package in your browser

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

vegan documentation built on May 2, 2019, 5:51 p.m.