Description Usage Arguments See Also
View source: R/reg-aggregate.R
Basically a wrapper for agg_region
that applies to multiple
regions and groups.
1 | agg_region_all(df, regs, measure, func, grps = c("all_sports", "hunt", "fish"))
|
df |
input summary data in tableau input format |
regs |
regions over which to aggregate |
measure |
metric to aggregate ("participants", etc.) |
func |
function to use for aggregation ("sum" or "mean") |
grps |
permission groups to aggregate over |
Other functions for preparing regional & national metrics:
agg_region()
,
drop_incomplete_states()
,
too_few_states()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.