Package 'apportion'

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

Help Index


Apportion by the Adams Method

Description

Apportion by the Adams Method

Usage

app_adams(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_adams(size = 435, pop = state_2020$pop)

Apportion by the Balinski Young Method

Description

Apportion by the Balinski Young Method

Usage

app_balinski_young(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_balinski_young(size = 435, pop = state_2020$pop)

Apportion by the Dean Method

Description

Apportion by the Dean Method

Usage

app_dean(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_dean(size = 435, pop = state_2020$pop)

Apportion by the D'Hondt Method

Description

Apportion by the D'Hondt Method

Usage

app_dhondt(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_dhondt(size = 435, pop = state_2020$pop)

Apportion by the Hamilton-Vinton Method

Description

Apportion by the Hamilton-Vinton Method

Usage

app_hamilton_vinton(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_hamilton_vinton(size = 435, pop = state_2020$pop)

Apportion by the Huntington-Hill Method

Description

Apportion by the Huntington-Hill Method

Usage

app_huntington_hill(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_huntington_hill(size = 435, pop = state_2020$pop)

Apportion by the Jefferson Method

Description

Apportion by the Jefferson Method

Usage

app_jefferson(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_jefferson(size = 435, pop = state_2020$pop)

Apportion by the Webster Method

Description

Apportion by the Webster Method

Usage

app_webster(size, pop)

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Value

integer vector

Examples

app_webster(size = 435, pop = state_2020$pop)

state_2020 (2020 State Data)

Description

tibble with columns:

  • GEOID: Federal Information Processing Standards codes

  • name: title case state name

  • pop: 2020 population

  • abb: two letter postal abbreviations

Usage

data('state_2020')

Value

tibble with state identifying information

Examples

data('state_2020')