Re: [R] kmeans: how to retrieve clusters

2012-02-28 Thread ikuzar
Hi, Ok, I understand what you mean. I wanted to get sorted data group by cluster in output ... But I have to do it myself using kres$cluster thanks for your help -- View this message in context: http://r.789695.n4.nabble.com/kmeans-how-to-retrieve-clusters-tp4426427p4427543.html Sent from

Re: [R] kmeans: how to retrieve clusters

2012-02-28 Thread R. Michael Weylandt
But it won't be hard at allyou can likely get what you need using the tapply() function (or ave) Michael On Tue, Feb 28, 2012 at 4:33 AM, ikuzar raz...@hotmail.fr wrote: Hi, Ok, I understand what you mean. I wanted to get sorted data group by cluster  in output ... But I have to do it

[R] kmeans: how to retrieve clusters

2012-02-27 Thread ikuzar
Hello, I'd like to classify data with kmeans algorithm. In my case, I should get 2 clusters in output. Here is my data colCandInd colCandMed 1 822950.5 2 83 1831.5 3 1192 2899.0 4 1193 2103.5 The first cluster is the

Re: [R] kmeans: how to retrieve clusters

2012-02-27 Thread Peter Langfelder
On Mon, Feb 27, 2012 at 3:18 PM, ikuzar raz...@hotmail.fr wrote: Hello, I'd like to classify data with kmeans algorithm. In my case, I should get  2 clusters in output. Here is my data colCandInd       colCandMed 1       82                2950.5 2       83               1831.5 3