Title: | Apportion Seats |
---|---|
Description: | Convert populations into integer number of seats for legislative bodies. Implements apportionment methods used historically and currently in the United States for reapportionment after the Census, as described in <https://www.census.gov/history/www/reference/apportionment/methods_of_apportionment.html>. |
Authors: | Christopher T. Kenny [aut, cre] |
Maintainer: | Christopher T. Kenny <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2024-11-20 05:20:55 UTC |
Source: | https://github.com/christopherkenny/apportion |
Apportion by the Adams Method
app_adams(size, pop)
app_adams(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_adams(size = 435, pop = state_2020$pop)
app_adams(size = 435, pop = state_2020$pop)
Apportion by the Balinski Young Method
app_balinski_young(size, pop)
app_balinski_young(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_balinski_young(size = 435, pop = state_2020$pop)
app_balinski_young(size = 435, pop = state_2020$pop)
Apportion by the Dean Method
app_dean(size, pop)
app_dean(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_dean(size = 435, pop = state_2020$pop)
app_dean(size = 435, pop = state_2020$pop)
Apportion by the D'Hondt Method
app_dhondt(size, pop)
app_dhondt(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_dhondt(size = 435, pop = state_2020$pop)
app_dhondt(size = 435, pop = state_2020$pop)
Apportion by the Hamilton-Vinton Method
app_hamilton_vinton(size, pop)
app_hamilton_vinton(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_hamilton_vinton(size = 435, pop = state_2020$pop)
app_hamilton_vinton(size = 435, pop = state_2020$pop)
Apportion by the Huntington-Hill Method
app_huntington_hill(size, pop)
app_huntington_hill(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_huntington_hill(size = 435, pop = state_2020$pop)
app_huntington_hill(size = 435, pop = state_2020$pop)
Apportion by the Jefferson Method
app_jefferson(size, pop)
app_jefferson(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_jefferson(size = 435, pop = state_2020$pop)
app_jefferson(size = 435, pop = state_2020$pop)
Apportion by the Webster Method
app_webster(size, pop)
app_webster(size, pop)
size |
number of seats to apportion across units |
pop |
a vector of population sizes for each unit |
integer vector
app_webster(size = 435, pop = state_2020$pop)
app_webster(size = 435, pop = state_2020$pop)
tibble with columns:
GEOID: Federal Information Processing Standards codes
name: title case state name
pop: 2020 population
abb: two letter postal abbreviations
data('state_2020')
data('state_2020')
tibble with state identifying information
data('state_2020')
data('state_2020')