Learn R Programming

agricolae (version 1.0-4)

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

  • dataobject merge of hcluster'

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