R/vec2dist.R

Defines functions vec2dist

Documented in vec2dist

vec2dist <-
function(x, size, labels = NULL, diag = FALSE, upper = FALSE, call = FALSE, method = NULL)
{
    class(x) <- "dist"
    attr(x, "Size") <- size
    attr(x, "Labels") <- labels
    attr(x, "Diag") <- diag
    attr(x, "Upper") <- upper
    attr(x, "call") <- if (call) match.call() else NULL
    attr(x, "method") <- method
    x
}

Try the mefa package in your browser

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

mefa documentation built on Oct. 7, 2021, 9:11 a.m.