This function will attempt to balance the groups so they contain similar numbers of elements.

discretize(df, groups = 3)

Arguments

df

A data frame-like object.

groups

The number of groups into which to separate the data.

Value

The same data fram with updated columns.

Examples

NULL
#> NULL