Displaying 1 result from an estimated 1 matches for "kres".
Did you mean:
kees
2012 Feb 27
2
kmeans: how to retrieve clusters
...dMed
1 82 2950.5
2 83 1831.5
3 1192 2899.0
4 1193 2103.5
The first cluster is the two first lines
the 2nd cluster is the two last lines
Here is the code:
x = colCandList$colCandInd
y = colCandList$colCandMed
m = matrix(c(x, y), nrow = length(colCandList$colCandInd), ncol=2)
kres = kmeans(m, 2)
Is there a way to retrieve both clusters in output of the algorithm in order
to process in each cluster ? (I am looking for smthing like kres$clustList
... where I can process each cluster)
kres$cluster did not yield what I expected ...
thanks for your help
--
View this message...