dist | R Documentation |
Calculates a distance matrix from a data set.
dist(x,...)
## Default S3 method:
dist(x,...)
x |
a dataset |
... |
further arguments to |
The distance is computed based on cdt
a distance matrix
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
aplus
data(SimulatedAmounts)
phc <- function(d) { plot(hclust(d))}
phc(dist(iris[,1:4]))
phc(dist(acomp(sa.lognormals),method="manhattan"))
phc(dist(rcomp(sa.lognormals)))
phc(dist(aplus(sa.lognormals)))
phc(dist(rplus(sa.lognormals)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.