branches<-cutree(hc,k=2)
group1<-which(branches==1) group2<-which(branches==2)
Hope this helps! Ales Ziberna
----- Original Message ----- From: "T. Murlidharan Nair" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 10, 2005 1:35 AM
Subject: [R] cuttree
How do I get the labels from a hclust object after I have cut the tree using cutree ? hc<-hclust(someData,"a")
branches<-cutree(hc)
If there are two branches, how do I obtain the labels associated with each of the branches separately ?
Thanks../Murli
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
