View source: R/biproportional-upper.R
| weight_votes_matrix | R Documentation |
Weight votes by dividing the votes matrix entries by the number
of seats per district. This method is used in upper_apportionment() if
weight_votes is TRUE (default).
weight_votes_matrix(votes_matrix, district_seats)
weight_list_votes(votes_matrix, district_seats)
votes_matrix |
votes matrix |
district_seats |
seats per district, vector with same length
as |
the weighted votes_matrix which contains the number of voters (not rounded)
weight_list_votes() has been renamed to weight_votes_matrix()
in v1.5.2 and is deprecated.
weight_votes_matrix(uri2020$votes_matrix, uri2020$seats_vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.