K-centers clustering using R
cluster-analysis, hierarchical-clustering, k-means, r
Solution
Try `kmeans` with `method = "centers"`.
If this is not what you are looking for, then CRAN has a cluster Task View with dozens of packages at http://cran.r-project.org/web/views/Cluster.html.
Problem
I can't find a simple library function for k-centers clustering using R, whereas I could for k-means (`kmeans()`) and hierarchical clustering (`hclust()`). Is there a library function for simple greedy k-centers clustering using R as depicted in this post If not - as I am new to R - how would one go about implementing it (I understand the logic - just not how to actually write it in R code).