discretize: Discretize all continuous variables in a data frame.

View source: R/mangling.R

discretizeR Documentation

Discretize all continuous variables in a data frame.

Description

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

Usage

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


Gibbons-Lab/mbtools documentation built on Jan. 28, 2024, 11:08 a.m.