View source: R/sc_clustering_methods.R
prune_tree | R Documentation |
Prune the dendrogram to have the specified number of clusters
prune_tree(hc, k)
hc |
a dendrogram saved in hclust object |
k |
interger, level to cut the dendrogram that has this number of clusters |
a list containing
a hclust object of pruned dendrogram
a vector of length n, cluster labels obtained at the specified tree cut
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.