Learn R Programming

shipunov (version 1.17.1)

Hcl2mat: Clustering to matrix

Description

Converts clustering to matrix

Usage

Hcl2mat(hcl)

Arguments

hcl

hclust object

Details

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.

See Also

Bclust, MRH

Examples

Run this code

head(Hcl2mat(hclust(dist(iris[, -5]))))

Run the code above in your browser using DataLab