R: groups of hclust

hgroups {agricolae} | R 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)

[Package agricolae version 1.2-8 Index]