View source: R/craft-align-hclust.R
hclust2 | R Documentation |
Generate Tree Structures with Hierarchical Clustering
hclust2(
matrix,
distance = "euclidean",
method = "complete",
use_missing = "pairwise.complete.obs"
)
matrix |
A numeric matrix, or data frame. |
distance |
A string of distance measure to be used. This must be one of
|
method |
A string of the agglomeration method to be used. This should be
(an unambiguous abbreviation of) one of |
use_missing |
An optional character string giving a method for computing
covariances in the presence of missing values. This must be (an abbreviation
of) one of the strings |
A hclust object.
cor()
dist()
hclust()
hclust2(dist(USArrests), method = "ward.D")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.