cutree2: Cut a Tree into Groups of Data

Description Usage Arguments

View source: R/cutree2.R

Description

Does the same as cutree, but the numbering matches the order of clusters when plotting the tree produced by hclust

Usage

1
cutree2(tree, k = NULL, h = NULL)

Arguments

tree

a tree as produced by hclust. cutree() only expects a list with components merge, height, and labels, of appropriate content each.

k

an integer scalar or vector with the desired number of groups

h

numeric scalar or vector with heights where the tree should be cut.


oliviermfmartin/HelpingHand documentation built on Oct. 10, 2020, 5:59 a.m.