hgroups: groups of hclust

View source: R/hgroups.R

hgroupsR Documentation

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.

Author(s)

F. de Mendiburu

See Also

hclust, hcut, consensus

Examples

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)

agricolae documentation built on Oct. 23, 2023, 1:06 a.m.