R/bstick.prcomp.R

Defines functions `bstick.prcomp`

`bstick.prcomp` <-
    function(n, ...)
{
    if(!inherits(n, "prcomp"))
        stop("'n' not of class \"prcomp\"")
    tot.chi <- sum(n$sdev^2)
    n.comp <- length(n$sdev)
    res <- bstick.default(n.comp, tot.chi, ...)
    names(res) <- dimnames(n$rotation)[[2]]
    res
}
vegandevs/vegan documentation built on May 6, 2024, 7:34 p.m.