kMeansEqual
Assigns k
cluster identifiers to a data frame kdat
whereby each cluster is of (nearly) equal size.
This function is based on a blog post post by Harrison Schramm and Carol DeZwarte.
I have optimized their code for performance and put it into a function kMeansEqual
.
This R package has a single function kMeansEqual
and can be installed via:
library(devtools)
install_github("ludgergoeminne/kMeansEqual")