powered by
Converts clustering to matrix
Hcl2mat(hcl)
hclust object
hclust
This 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
Bclust
MRH
head(Hcl2mat(hclust(dist(iris[, -5]))))
Run the code above in your browser using DataLab