Turns factors into indicator variables with reasonable names.
Supports parallelization using future
plans.
Based on code by Taylor Terry from 2013.
factors_to_indicators(
data,
predictors = colnames(data),
max_levels = 200L,
verbose = FALSE
)
.
.
If a factor contains more than this many levels, issue a warning and don't convert it to indicators.
TBD