Cuts a tree, e.g., as resulting from
hclust, into several groups either by specifying the desired number(s) of groups or the cut height(s).
cutree(tree, k = NULL, h = NULL)
At least one of
h must be specified,
h if both are given.
Cutting trees at a given height is only possible for ultrametric trees (with monotone clustering heights).
cutree returns a vector with group memberships if
h are scalar, otherwise a matrix with group memberships is returned where each column corresponds to the elements of
h, respectively (which are also used as column names).
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
dendrogram for cutting trees themselves.
Documentation reproduced from R 3.0.2. License: GPL-2.