proportional_re_aggregate: Dot density data merge function Cleans the data and prepares...

View source: R/dot-density.R

proportional_re_aggregateR Documentation

Dot density data merge function Cleans the data and prepares them for dot-density maps

Description

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.

Usage

proportional_re_aggregate(
  data,
  parent_data,
  geo_match,
  categories,
  base = "Population"
)

Arguments

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


mountainMath/dotdensity documentation built on April 6, 2022, 5:51 a.m.