Description Usage Arguments Details Value See Also Examples
Takes a data_ls object generated by f_clean_data() and adds boxcox transformations of all numeric variables.
1 | f_boxcox(data_ls)
|
data_ls |
data_ls object generated by f_clean_data(), or a named list list( data = <dataframe>, numericals = < vector with column names of numerical columns>) |
For a boxcox transformation all values mut be > 0. The function will automatically add the abs( min(x) ) + 0.0001 to all columns if they contain values <= 0
returns a list
data |
the cleaned dataframe as tibble |
categoricals |
vector of column names containing categorical data |
numericals |
vector of column names containing numerical data |
ids |
vector of column names containing ids |
boxcox_names |
vector of column names containing boxcox transformed variables |
boxcox_data |
tibble containing boxcox transformed variables |
1 2 | data_ls = f_clean_data(mtcars)
f_manip_get_most_common_level( data_ls$data$cyl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.