R/weights.rda.R

`weights.rda` <-
    function (object, display = "sites", ...)
{
    display <- match.arg(display, c("sites", "species", "lc",
                                    "wa"))
    if (display %in% c("sites", "lc", "wa")) {
        n <- nobs(object)
        if (!is.null(object$na.action) &&
            inherits(object$na.action, "exclude"))
            n <- n + length(object$na.action)
    }
    else n <- length(object$colsum)
    rep(1, n)
}

Try the vegan package in your browser

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

vegan documentation built on Oct. 11, 2022, 5:06 p.m.