s.cluster.h | R Documentation |
This function performs hierarchical clustering on a group of variables, given their distances from each other.
s.cluster.h(distances, linkage = "single")
distances |
Lower triangle of a symmetric distance matrix (without the diagonal).
This can be the output of |
linkage |
Character string specifying the method for calculating the distance in a left-right node merge.
It can be |
The main purpose of exporting this statistics helper method is to show the inner calculations of the package.
A list with the following items:
merge |
An integer matrix representing the merge matrix. |
height |
A numeric vector representing the heights. |
order |
An integer vector representing the orders. |
n <- 10
data <- data.frame(x = rnorm(n), y = rnorm(n), z = rnorm(n))
distances <- s.distance(data)
clusters <- s.cluster.h(distances)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.