| Distance | R Documentation |
Dispatcher computing an object-by-object distance matrix under a range of measures suitable for continuous, binary and mixed-type data.
Distance(
Data,
distmeasure = c("tanimoto", "jaccard", "euclidean", "hamming", "cont tanimoto",
"MCA_coord", "gower", "chi.squared", "cosine"),
normalize = NULL,
method = NULL
)
Distance_v2(Data, distmeasure = "tanimoto", normalize = NULL)
Data |
A data matrix; rows are the objects. |
distmeasure |
One of |
normalize |
Optional normalisation method (see |
method |
Ignored; retained for backward compatibility. |
"cosine", "chi.squared" and "MCA_coord" require
the suggested packages lsa, analogue and FactoMineR
respectively.
A symmetric numeric distance matrix.
m <- matrix(rbinom(40, 1, 0.5), nrow = 8)
D <- Distance(m, distmeasure = "tanimoto")
dim(D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.