Re: [R] about cutree

From: Stephen D. Weigand <>
Date: Fri 16 Sep 2005 - 13:27:52 EST

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

> 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

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 mailing list PLEASE do read the posting guide! Received on Wed Sep 21 02:02:31 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 17:06:55 EST