proportional_re_aggregate | R Documentation |
Data at lower aggregation levels may not add up to the more accurate aggregate counts. This function distributes the aggregate level counts proprtionally (by population) to the containing lower leve geographic regions.
proportional_re_aggregate( data, parent_data, geo_match, categories, base = "Population" )
data |
The base geographic data (sp or sf format) |
parent_data |
Higher level geographic data (sp format) |
geo_match |
A named string informing on what column names to match data and parent_data |
categories |
Vector of column names to re-aggreagte |
base |
Column name to use for proportional weighting when re-aggregating |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.