Learn R Programming

tidyclust (version 0.2.4)

.k_means_fit_klaR: Simple Wrapper around klaR kmeans

Description

This wrapper runs klaR::kmodes() and reorders the clusters.

Usage

.k_means_fit_klaR(data, modes, ...)

Value

Result from klaR::kmodes()

Arguments

data

A matrix or data frame of categorical data. Objects have to be in rows, variables in columns.

modes

Either the number of modes or a set of initial (distinct) cluster modes. If a number, a random set of (distinct) rows in data is chosen as the initial modes.

...

Other arguments passed to klaR::kmodes()