Clustering to matrix
Converts clustering to matrix
Hcl2mat(hcl)
hcl
: hclust
objectThis function converts 'hclust' object into binary matrix in accordance with clusterings.
It has many uses: clustering bootstrap, clustering compare, and matrix representation of hierarchical clustering.
Bclust
, MRH
head(Hcl2mat(hclust(dist(iris[, -5]))))
Useful links