LR_Hamilton: Hamilton-Hare Largest Remainder Method

Description Usage Arguments Value Examples

Description

Allocate seats to parties using Hamilton-Hare largest remainder apportionment method.

Usage

1
2
LR_Hamilton(parties = NULL, votes = NULL, seats = NULL, threshold = 0,
  order_name = TRUE, ...)

Arguments

parties

A character vector for party labels in the same order as in the numerical vector of votes for parties. If NULL, 3-letter identifiers (e.g. 'XYZ') will be assigned.

votes

A numeric vector of votes received by each party.

seats

The number of seats to be apportioned.

threshold

A numeric value between [0, 1]. Default is set to 0.

order_name

A logical value. Sort rows of a dataframe with results by party name (alphabetically).

Value

A data.frame of length parties containing apportioned seats.

Examples

1
(...)

pierzgal/disprr documentation built on May 25, 2019, 7:11 a.m.