addClusterVarsKmeans: Add kmeans cluster variables

addClusterVarsKmeansR Documentation

Add kmeans cluster variables

Description

Adds kmeans cluster results in form of grouping variables to the data of the input object.

Usage

addClusterVarsKmeans(object, ...)

## S4 method for signature 'Analysis'
addClusterVarsKmeans(
  object,
  ks,
  methods_kmeans = "Hartigan-Wong",
  prefix = "",
  naming = "{method_kmeans}_k{k}",
  overwrite = FALSE
)

Arguments

object

Any object for whose class a method has been defined.

ks

Numeric vector. Denotes all options for k-clusters. Values <1 are discarded. Is converted into an integer vector.

Details

Iterates over all possible combinations of the arguments ks and methods_kmeans and adds the corresponding grouping variables to the objects data. Cluster variables are named corresponding to the input of argument naming.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.