kmeans.assign_resultDS: Assign values as a column on a data frame

View source: R/kmeans.assign_resultDS.R

kmeans.assign_resultDSR Documentation

Assign values as a column on a data frame

Description

This function is called from the ds.kmeans function when assign = TRUE, it could be adapted to other functionalities checking if lengths are equal.

Usage

kmeans.assign_resultDS(x, ...)

Arguments

x

data frame Table where the next arguments will be added as a column

...

numeric Values to be coerced as a column to the table 'x'

Value

data frame With the original 'x' table with a column added named 'kmeans.cluster'. The added column is encoded as a factor and as such passes through the disclosive check: checking if the number of levels of the factor is more than nfilter.levels (percentage) of the length of the variable.


isglobal-brge/dsML documentation built on March 14, 2023, 1:58 p.m.