Description Usage Arguments See Also
View source: R/reg-aggregate.R
To be called from agg_region_all
1 | agg_region(df, reg, grp, measure, func)
|
df |
input summary data in tableau input format |
reg |
region over which to aggregate |
grp |
group over which to aggregate |
measure |
metric to aggregate ("participants", etc.) |
func |
function to use for aggregation ("sum" or "mean") |
Other functions for preparing regional & national metrics:
agg_region_all()
,
drop_incomplete_states()
,
too_few_states()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.