f_manip_bin_numerics: bin numerical columns

Description Usage Arguments Value Examples

Description

centers, scales and Yeo Johnson transforms numeric variables in a dataframe before binning into n bins of eqal range. Outliers based on boxplot stats are capped (set to min or max of boxplot stats).

Usage

1
2
f_manip_bin_numerics(df, bins = 5, bin_labels = c("LL", "ML", "M",
  "MH", "HH"), center = T, scale = T, transform = T)

Arguments

df

dataframe with numeric variables

bins

number of bins for numerical variables, Default: 5

bin_labels

labels for the bins from low to high, Default: c("LL", "ML", "M", "MH", "HH")#' @param center boolean, Default: T

center

boolean, Default: T

scale

boolean, Default: T

transform

boolean, Default: T

Value

dataframe

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

erblast/oetteR documentation built on May 27, 2019, 12:11 p.m.