Description Usage Arguments Value Examples
Get clusters ID or individuals' indices, of clusters or individuals comprised in a cluster
1 | get_lower_clusters(mytree, i, immediate = FALSE)
|
mytree |
a classification tree |
i |
the index of the cluster |
immediate |
if TRUE, the function returns clusters at the level immediately below, if FALSE, the function returns all individuals comprised in the cluster |
vector of indices
1 2 3 | hc <- hclust(dist(USArrests), "ave")
get_lower_clusters(hc,15,immediate=TRUE)
get_lower_clusters(hc,15,immediate=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.