Description Usage Arguments Value Examples
Given a dataframe and one or more grouping variables this function will calculate the proportion of group observations within groups
1 |
df |
dataframe containing the grouping variables |
... |
any number of grouping variables passed as names |
dataframe with counts and proportions of groups within groups
1 | group_proportions(mtcars, hp, cyl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.