R/orddist.R

orddist <- function (x, dim)
{
    z <- x$points

    if (missing(dim)) dim <- ncol(z)
    if (dim != ncol(z))
        cat(paste("Only comparing first",dim,"dimensions\n"))
    if (dim > ncol(z)) {
        dim <- ncol(z)
        cat(paste("The ordination is only",dim,"dimensionsal."))
    }

    tmp <- dist(z[, 1:dim])
    tmp
}

Try the labdsv package in your browser

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

labdsv documentation built on April 10, 2023, 5:08 p.m.