Find all unique groups in hclust results

Description

Find all unique groups in hclust results

Usage

1

Arguments

hc

output of hclust function

Value

A list containing :

indexGroup

Vector containing the index of variables.

varGroup

Vector containing the index of the group of each variable.

Author(s)

Quentin Grimonprez

Examples

1
2
hc <- hclust(dist(USArrests), "ave")
res <- uniqueGroupHclust(hc)