Description Usage Arguments Value Examples
Allocate seats to parties using Hamilton-Hare largest remainder apportionment method.
1 2 |
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). |
A data.frame of length parties containing apportioned seats.
1 | (...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.