dot-k_means_fit_stats: Simple Wrapper around stats kmeans

.k_means_fit_statsR Documentation

Simple Wrapper around stats kmeans

Description

This wrapper runs stats::kmeans() and adds a check that centers is specified. And reorders the clusters.

Usage

.k_means_fit_stats(data, centers = NULL, ...)

Arguments

centers

either the number of clusters, say k, or a set of initial (distinct) cluster centres. If a number, a random set of (distinct) rows in x is chosen as the initial centres.

...

Other arguments passed to stats::kmeans()

Value

Result from stats::kmeans()


tidyclust documentation built on July 3, 2024, 1:06 a.m.