R/no.shared.R

"no.shared" <-
    function(x)
{
    N <- nrow(x <- as.matrix(x))
    d <- .C("veg_distance", x = as.double(x), nr = N, nc = ncol(x),
            d = double(N * (N - 1)/2), diag = as.integer(FALSE),
            method = as.integer(99), PACKAGE="vegan")$d
    d <- as.logical(d)
    attr(d, "Size") <- N
    attr(d, "Labels") <- dimnames(x)[[1]]
    attr(d, "Diag") <- FALSE
    attr(d, "Upper") <- FALSE
    attr(d, "method") <- "no.shared"
    attr(d, "call") <- match.call()
    class(d) <- "dist"
    d        
}

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.