[R] Pl. provide and Input for Kmeans

Peter Malewski y0004379 at rzpool07.rz.tu-bs.de
Thu Sep 14 15:56:45 CEST 2000


On Thu, Sep 14, 2000 at 12:58:52AM -0600, Shalabh Gandhi wrote:
> Can you please help me in providing with the data and center values. The data
> I am currrently using gives me an error -- empty cluster: try better set of
> initial centers. Number of clusters centers mush lie between 1 and nrow(n).

xx <- cbind(c(rnorm(100,0),rnorm(100,4)) , c(rnorm(100,9),rnorm(100,2)) ) 

kmeans(xx , cbind(c(4,0), c(9,2)) )

but:

> kmeans(xx , cbind(c(4,0,32,43), c(9,2,23,43)) )
Error in switch(Z$ifault, stop("empty cluster: try a better set of initial centers"),  : 
	empty cluster: try a better set of initial centers



...
-- 
P.Malewski, Maschplatz 8, 38114 Braunschweig, Tel.: 0531 500965, 
MH-Hannover: 0511 532 3194 / Fax: 0511 532 3190, 
P.Malewski at tu-bs.de, peter.malewski at gmx.de, malewski.peter at mh-hannover.de.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list