[R] Newbie: Measuring distance between clusters.
Keizer_71
christophe.lo at gmail.com
Sat Feb 23 10:40:06 CET 2008
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.
More information about the R-help
mailing list