View source: R/utils_clustering.R
cut_clusters | R Documentation |
Cut a hierarchical tree targeting k clusters
cut_clusters(clusters, k)
clusters |
cluster results, produced by e.g. |
k |
target number of clusters |
cluster labels
dmat <- compute_dmat(iris, "euclidean", TRUE, c("Petal.Length", "Sepal.Length"))
clusters <- compute_clusters(dmat, "complete")
cluster_labels <- cut_clusters(clusters, 2)
head(cluster_labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.