[R] Newbie: Measuring distance between clusters.

From: Keizer_71 <christophe.lo_at_gmail.com>
Date: Sat, 23 Feb 2008 01:40:06 -0800 (PST)

Hi,

I had 10000 genes, and I clustered them using K-means clustering in R.

kc<-kmeans(data.sub,7)

kc
n cluster sum of squares by cluster:
[1] 60631.76 135886.19 159049.71 101783.27 90040.72 183335.60 158867.81

Available components:
[1] "cluster" "centers" "withinss" "size"

I am very new to R. How do i measure the distance between those cluster?

I tried

I am trying to do a complete linkage

>z<-hclust(kc,method="complete")

Error in if (n < 2) stop("must have n >= 2 objects to cluster") :

        argument is of length zero

thanks.   

-- 
View this message in context: http://www.nabble.com/Newbie%3A-Measuring-distance-between-clusters.-tp15650066p15650066.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 23 Feb 2008 - 09:44:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 24 Feb 2008 - 04:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive