Fit Kmeans on globs

get_mean_clusters(data, fit_name, n_clust, iter, n_start, seed = NULL)

Arguments

data

Dataframe of 2-d space to fit on.

fit_name

Name of kmeans fit

n_clust

An integer number of clusters to fit.

iter

An integer number of max iterations for the kmeans algorithm to converge to.

n_start

An integer number of max iterations for the kmeans algorithm to converge to

seed

Random seed to use to make the results reproducible.

Value

Dataframe of covariates, predictions, and title of fit.