subset.hclust: Return the labels of items in 1 or more groups cut from...

View source: R/clustering.r

subset.hclustR Documentation

Return the labels of items in 1 or more groups cut from hclust object

Description

Return the labels of items in 1 or more groups cut from hclust object

Usage

## S3 method for class 'hclust'
subset(x, k = NULL, h = NULL, groups = NULL, ...)

Arguments

x

tree like object

k

an integer scalar with the desired number of groups

h

numeric scalar with height where the tree should be cut

groups

a vector of which groups to inspect.

...

Additional parameters passed to methods

Details

Only one of h and k should be supplied.

Value

A character vector of labels of selected items


nat.nblast documentation built on July 9, 2023, 6:12 p.m.