get_lower_clusters: Get clusters ID or individuals' indices, of clusters or...

Description Usage Arguments Value Examples

Description

Get clusters ID or individuals' indices, of clusters or individuals comprised in a cluster

Usage

1
get_lower_clusters(mytree, i, immediate = FALSE)

Arguments

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

Value

vector of indices

Examples

1
2
3
hc <- hclust(dist(USArrests), "ave")
get_lower_clusters(hc,15,immediate=TRUE)
get_lower_clusters(hc,15,immediate=FALSE)

lvaudor/classMapR documentation built on May 7, 2019, 10:54 p.m.