Description Usage Arguments Value Examples
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).
1 2 | f_manip_bin_numerics(df, bins = 5, bin_labels = c("LL", "ML", "M",
"MH", "HH"), center = T, scale = T, transform = T)
|
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 |
dataframe
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.