R/dot-density.R
proportional_re_aggregate.Rd
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"
)
The base geographic data (sp or sf format)
Higher level geographic data (sp format)
A named string informing on what column names to match data and parent_data
Vector of column names to re-aggreagte
Column name to use for proportional weighting when re-aggregating