Description Usage Arguments Value Examples
This function calculates the summary statistics such as mean and range for a numerical variable grouped by a categorical variable (both of which are your choice) from an input dataset. It uses the dplyr functions group_by and summarise to output a tibble or data frame depending on your input data type class.
1 | dplyr_bundle(input, group, summary)
|
input |
A dataframe or tibble input. |
group |
A categorical column in the dataframe/tibble that should be used for grouping. |
summary |
A numerical column for which summary statistics are to be computed. |
A Tibble containing four columns- categorical variable by which the data is grouped, mean, minimum, maximum computed for a numerical variable.
1 2 | dplyr_bundle(datateachr::vancouver_trees, group = common_name, summary = diameter)
dplyr_bundle(palmerpenguins::penguins, group = island, summary = flipper_length_mm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.