Re: [R] hierarchical clustering within a size limit

2011-11-17 Thread petaltail
You can print out the nodes and their corresponding clusters into a file by this: > write.table (hc,file="hc_40clusters.cvs", quote=FALSE, sep=" ") -- View this message in context: http://r.789695.n4.nabble.com/hierarchical-clustering-within-a-size-limit-tp3515354p4080551.html Sent from the R

Re: [R] hierarchical clustering within a size limit

2011-05-18 Thread rna seq
Hi Peter, Thanks for your help. A second simple question that I cannot solve is the following. labels = cutree(hc, h=500) # members of cluster 1: x[labels==1] # members of cluster 2: x[labels==2] When x is >= 8 the index numbers appear in the output: [['[1]', '180066408', '180066464', '18006646

Re: [R] hierarchical clustering within a size limit

2011-05-11 Thread Peter Langfelder
On Wed, May 11, 2011 at 10:12 AM, rna seq wrote: > Hello List, > > I am trying to implement a hierarchical cluster using the hclust method > agglomerative single linkage method with a small wrinkle. I would like to > cluster a set of numbers on a number line only if they are within a distance > of

[R] hierarchical clustering within a size limit

2011-05-11 Thread rna seq
Hello List, I am trying to implement a hierarchical cluster using the hclust method agglomerative single linkage method with a small wrinkle. I would like to cluster a set of numbers on a number line only if they are within a distance of 500. I would then like to print out the members of this list