[R] extract clusters from a hclusrt object without cutree

Larson, TR trl1 at york.ac.uk
Wed Sep 30 18:35:46 CEST 2009


Hello,

I am generating an hclust() object and want to extract a subset of 
clusters WITHOUT using cutree().  I see this somehow involves using the 
$merge matrix to associate $labels into their appropriate clusters where 
clusters are split below a given $height threshold.  Can anyone suggest 
a way/code to do this?  I see cutree uses embedded fortran code, so it's 
not obvious how cutree does it....



thanks
Tony




More information about the R-help mailing list