find_algorithm()
returns a function to assign k-means cluster.
kmean_assignment_r()
wraps around kmeans()
to pull the correct
assignments.
find_algorithm(algorithm, seed)kmean_assignment_c(.data, k, n_iter = 10L, verbose = FALSE,
seed = 1L)
kmean_assignment_r(.data, k, algorithm = "Hartigan-Wong", seed = 1L)
the kmeans algorithm to use
a kmeans function