View source: R/biproportional-upper.R
upper_apportionment | R Documentation |
In the first step of biproportional apportionment parties are given seats according to the sum of their votes across all districts.
upper_apportionment(
votes_matrix,
district_seats,
use_list_votes = TRUE,
method = "round"
)
votes_matrix |
Vote count matrix with votes by party in rows and votes by district in columns. |
district_seats |
Vector defining the number of seats per district. Must be the same
length as |
use_list_votes |
By default ( |
method |
Apportion method that defines how seats are assigned, see |
A named list with district
seats (for votes_matrix
columns) and party
seats
(for rows).
The results from the upper apportionment define the number of seats for each party and the number of seats for each district for the whole voting area. The lower apportionment will only determine where (i.e. which district) the party seats are allocated. Thus, after the upper apportionment is done, the final strength of a party/district within the parliament is definite.
biproporz()
, lower_apportionment()
votes_matrix = matrix(c(123,912,312,45,714,255,815,414,215), nrow = 3)
district_seats = c(7,5,8)
upper_apportionment(votes_matrix, district_seats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.