cutree-methods function

Cut a Tree (Dendrogram/hclust/phylo) into Groups of Data