agricolae (version 1.2-8)

hgroups: groups of hclust

Description

Returns a vector with group memberships. This function is used by the function consensus of clusters.

Usage

hgroups(hmerge)

Arguments

hmerge

The object is components of the hclust

Value

The merge clusters is printed.

See Also

hclust, hcut, consensus

Examples

Run this code
# NOT RUN {
library(agricolae)
data(pamCIP)
# only code
rownames(pamCIP)<-substr(rownames(pamCIP),1,6)
distance <- dist(pamCIP,method="binary")
clusters<- hclust( distance, method="complete")
# groups of clusters
hgroups(clusters$merge)
# }

Run the code above in your browser using DataLab