[R] Empty clusters in k-means - possible solution

2013-05-15 Thread Simon Chamaillé
Hello all, k-means algorithms can at times fail because one of the cluster become emmpty. In this case, the kmeans R function returns: "empty cluster: try a better set of initial centers" This has been discussed several times on several R-lists, and is NOT a bug, but can be annoying when usin

[R] Storing and managing custom R functions for re-use

2011-07-09 Thread Simon Chamaillé-Jammes
Dear all, sorry if this is a bit on the sidetrack for R-help. As a regular R user I have developed quite a lot of custom R functions, to the point of not always remembering what I have already programmed, where the file is and so on. I was wondering what other people do in this regards. A basi