Skip to content

about cutree

3 messages · Baoqiang Cao, Stephen D. Weigand, Romain Francois

#
Hi Everyone,

I'm trying to use cutree to get the clusters after hclust. What I used is: mycluster<-cutree(cnclust,h=0.5)
Now, my problem is, how can I get the actual clusters? Thanks!

Best,
 Baoqiang Cao
#
On Sep 15, 2005, at 10:26 AM, Baoqiang Cao wrote:

            
Doesn't print(mycluster) give you the clusters? You could
use something like:

R> split(names(mycluster), mycluster)

You may need to better define "get the actual clusters" to get
a better answer.

Stephen
#
Le 15.09.2005 17:26, Baoqiang Cao a ??crit :
Hello,

If you mean getting the labels in the same order than presented by the 
dendrogram (( Why isn't it the default BTW )), try using cutree.order in 
package A2R here http://addictedtor.free.fr/packages/A2R/

Regards,

Romain