Learn R Programming

apportion (version 0.0.2)

app_huntington_hill: Apportion by the Huntington-Hill Method

Description

Apportion by the Huntington-Hill Method

Usage

app_huntington_hill(size, pop)

Value

integer vector

Arguments

size

number of seats to apportion across units

pop

a vector of population sizes for each unit

Examples

Run this code
app_huntington_hill(size = 435, pop = state_2020$pop)

Run the code above in your browser using DataLab