k_means: K-Means

View source: R/k_means.R

k_meansR Documentation

K-Means

Description

k_means() defines a model that fits clusters based on distances to a number of centers.

Usage

k_means(mode = "partition", engine = "stats", k = NULL)

Arguments

mode

A single character string for the type of model. The only possible value for this model is "partition".

engine

A single character string specifying what computational engine to use for fitting. Possible engines are listed below. The default for this model is "stats".

k

Positive integer, number of clusters in model.

Examples

# show_engines("k_means")

k_means()

kbodwin/celery documentation built on March 26, 2022, 12:33 a.m.