here Is a dendrogram, as you can see there are 3 clusters:
here is the corresponding distance table :
> round(cophenetic(hclust_avg), digits=3)
g1 g2 g3 g4 g5 g6 g7 g8 g9 g10
g2 0.000
g3 3.027 3.027
g4 3.027 3.027 0.000
g5 0.000 0.000 3.027 3.027
g6 0.000 0.000 3.027 3.027 0.000
g7 0.000 0.000 3.027 3.027 0.000 0.000
g8 3.027 3.027 2.683 2.683 3.027 3.027 3.027
g9 3.027 3.027 2.683 2.683 3.027 3.027 3.027 0.000
g10 0.000 0.000 3.027 3.027 0.000 0.000 0.000 3.027 3.027
g11 3.027 3.027 0.000 0.000 3.027 3.027 3.027 2.683 2.683 3.027
and what I would like is to get from this a table such as :
g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11
1 1 2 2 1 1 1 3 3 1 2
where I put in the same group the number values that have a distance = 0.
Thanks for your time.