Learn R Programming

agricolae (version 1.3-7)

hgroups: groups of hclust

Description

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

Usage

hgroups(hmerge)

Value

The merge clusters is printed.

Arguments

hmerge

The object is components of the hclust

Author

F. de Mendiburu

See Also

hclust, hcut, consensus

Examples

Run this code
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