get_mean_clusters: Fit Kmeans on globs

View source: R/kmeans.R View source: R/cluster_performance.R

get_mean_clustersR Documentation

Fit Kmeans on globs

Description

Fit Kmeans on globs

Usage

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.


Henrik-Kowalkowski/rClustering documentation built on April 13, 2022, 11:32 p.m.