hgroups              package:agricolae              R Documentation

_g_r_o_u_p_s _o_f _h_c_l_u_s_t

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     hgroups(hmerge)

_A_r_g_u_m_e_n_t_s:

  hmerge: The object is components of the hclust

_V_a_l_u_e:

   data : object merge of hcluster'

_A_u_t_h_o_r(_s):

     F. de Mendiburu

_S_e_e _A_l_s_o:

     'hclust', 'hcut', 'consensus'

_E_x_a_m_p_l_e_s:

     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)

