Re: [Rd] kmeans

2010-07-05 Thread Martin Maechler
Gabor Grothendieck ggrothendi...@gmail.com on Fri, 2 Jul 2010 18:50:28 -0400 writes: In kmeans() in stats one gets an error message with the default clustering algorithm if centers = 1. Its often useful to calculate the sum of squares for 1 cluster, 2 clusters, etc. and this

[Rd] kmeans

2010-07-02 Thread Gabor Grothendieck
In kmeans() in stats one gets an error message with the default clustering algorithm if centers = 1. Its often useful to calculate the sum of squares for 1 cluster, 2 clusters, etc. and this error complicates things since one has to treat 1 cluster as a special case. A second reason is that