Return the labels of items in 1 or more groups cut from hclust object
# S3 method for hclust
subset(x, k = NULL, h = NULL, groups = NULL, ...)
A character vector of labels of selected items
tree like object
an integer scalar with the desired number of groups
numeric scalar with height where the tree should be cut
a vector of which groups to inspect.
Additional parameters passed to methods
Only one of h
and k
should be supplied.