dist {mva} | R Documentation |
This function computes and returns the distance matrix
computed by using the specified distance measure to
compute the distances between the rows of x
.
dist(x, method="euclidian", diag=FALSE)
print.dist(dist.obj)
x |
a matrix or (data frame). Distances between
the rows of |
method |
the distance measure to be used.
This must be one of |
diag |
a logical value indicating whether the diagonal of the distance matrix should be included in the result. |
The lower triangle of the distance matrix (with or without
its diagonal as specified by diag
) and
stored by columns in a single vector.
The vector has the attributes "size"
,
"diag"
, "labels"
and class
equal to "dist".
Mardia, K. V., J. T. Kent and J. M. Bibby (1979). Multivariate Analysis, London: Academic Press.
hclust
.
# There are no examples yet.