mhclass: Classifications for hierarchical clustering.
Description
Gives classifications corresponding to the stages of hierarchical clustering.
Usage
mhclass(tree, nclusters)
Arguments
tree
An "mhtree" object, which is a matrix whose columns are integers
corresponding to clusters merged at each stage of hierarchical clustering
(classification tree), together with an attribute giving the initial
partition for the hierarchical pr
nclusters
the numbers of clusters for which classifications are desired. The default
is to produce all classifications implied by tree given the initial
partition.
Value
a matrix whose columns are the classifications corresponding to each value of
nclusters. Columns are labeled by the as.character representation of
the number of clusters.