R/population.R
rict_population.Rd
Display population parity in a table
rict_population(map, plan, as_gt = TRUE)
A redist_map or sf object.
redist_map
sf
Column in map or vector of district assignments.
map
Logical. Should output be a gt table? Default: TRUE.
gt
TRUE
a gt_tbl if as_gt = TRUE, otherwise a tibble::tibble
gt_tbl
as_gt = TRUE
rict_population(map = wv, plan = wv$cd_2020) District Population Deviation People % 1 896,067 −791 −0.1%2 897,649 791 0.1%