discretize.RdThis function will attempt to balance the groups so they contain similar numbers of elements.
discretize(df, groups = 3)
| df | A data frame-like object. | 
|---|---|
| groups | The number of groups into which to separate the data. | 
The same data fram with updated columns.
NULL#> NULL