Effiecient implementation of kmeans++ algorithm

TGL_kmeans(tab, K, id_column = FALSE, allow_nas = TRUE, verbose = FALSE,
  fn = NULL, tab_file = FALSE, order_rows = TRUE,
  clust_order_func = partial(mean, na.rm = T), row_order_func = NULL,
  method = "ward.D2", row_order_column = FALSE,
  TGL_kmeans_bin = sprintf("%s/%s", system.file("bin", package =
  "gpatterns"), "TGLKMeans_static"))

Arguments

tab
table
K
K
id_column
id_column
allow_nas
allow_nas
verbose
verbose
fn
fn
tab_file
tab_file
order_rows
order_rows
clust_order_func
clust_order_func
row_order_func
row_order_func
method
method
row_order_column
row_order_column
TGL_kmeans_bin
TGL_kmeans_bin