Learn R Programming

MagmaClustR (version 1.2.1)

ini_kmeans: Run a k-means algorithm to initialise clusters' allocation

Description

Run a k-means algorithm to initialise clusters' allocation

Usage

ini_kmeans(data, k, nstart = 50, summary = FALSE)

Value

A tibble containing the initial clustering obtained through kmeans.

Arguments

data

A tibble containing common Input and associated Output values to cluster.

k

A number of clusters assumed for running the kmeans algorithm.

nstart

A number, indicating how many re-starts of kmeans are set.

summary

A boolean, indicating whether we want an outcome summary

Examples

Run this code
TRUE

Run the code above in your browser using DataLab