Description Usage Arguments Examples
This function calculates statistics for numerical attributes. All numerical variables are selected by the function automatically. If you want to apply it so specific columns only you need to specify that prior or after the function is applied. If you want to caculate the share in a group by manner you can use the nest-mutate-map combination. See examples for an illustration.
1 |
df |
A data frame |
1 2 3 4 5 6 7 8 9 | recipes::credit_data %>%
calculate_stats_numeric()
recipes::credit_data %>%
first_to_lower() %>%
nest(-marital) %>%
mutate(stats = purrr::map(data, ~calculate_stats_numeric(.x))) %>%
select(marital, stats) %>%
unnest()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.