hhill: Return apportioned vector according to Huntington-Hill Method

Description Usage Arguments Value References Further details Examples

Description

Return apportioned vector according to Huntington-Hill Method

Usage

1
hhill(x, n = 100, k = 1)

Arguments

x

A named vector.

n

Number of apportioned units to sum to

k

The incrementing interval used to search for divisors

Value

A named vector of length x containing apportioned integers summing to n.

References

http://www.maa.org/publications/periodicals/convergence/apportioning-representatives-in-the-united-states-congress-hills-method-of-apportionment

Further details

Method developed around 1911 by Joseph Hill and modified by Edward Huntington

Examples

1
2
3
hhill(usa1790, 105)
hhill(usa2000, 435)
hhill(usa2000, 435, 20)

jalapic/apportR documentation built on May 18, 2019, 11:17 a.m.