Description Usage Arguments Value Examples
Allocate seats to parties using a variaty of divisor methods.
| 1 2 3 | 
| 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. | 
| method | A character name for the method to be used (e.g. 'dh' = d'Hondt). The following apportionment methods are available: "dh" - d'Hondt method, "sl" - Sainte-Lague method, "msl" - Modified Sainte-Lague method, "danish" - Danish modified Sainte-Lague method, "hsl" - Hungarian modified Sainte-Lague method, "imperiali" - The Italian Imperiali (not to be confused with the Imperiali Quota, which is a Largest remainder method), "hh" - Huntington-Hill method, "wb" - Webster's method, "jef" - Jefferson's method, "ad" - Adams's method, "hb" - Hagenbach-Bischoff method. | 
| 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.