aggregate_pop_weighted_score | R Documentation |
Aggregate population-weighted scores within small areas.
aggregate_pop_weighted_score(data, x, higher_id, lower_pop)
data |
A dataframe containing a variable to be aggregated, lower level geography population estimates, and a higher level geographical grouping variable. |
x |
Name of the variable in the dataframe containing the variable to be aggregated (e.g., score) for the lower level geography. |
higher_id |
Name of the variable in the dataframe containing the higher level geography names/codes. |
lower_pop |
Name of the variable in the dataframe containing the population estimates of the lower level geography. |
## Not run:
aggregate_pop_weighted_score(
example_aggregate_data,
score,
higher_geography_code,
lower_geography_population
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.