mhclass {mclust} | R Documentation |
Gives classifications corresponding to the stages of hierarchical clustering.
mhclass(tree, nclusters)
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 process.
|
nclusters |
the numbers of clusters for which classifications are desired. The default
is to produce all classifications implied by tree given the initial
partition.
|
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.
data(iris) mhclass(mhtree(iris[,1:4]), 2:6)