Cuts a tree, e.g., as resulting from
hclust, into several
groups either by specifying the desired number(s) of groups or the cut
a tree as produced by
an integer scalar or vector with the desired number of groups
numeric scalar or vector with heights where the tree should be cut.
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
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.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.