Description Usage Arguments Value Examples
Reads a csv file containing votes for each party in a costituency and assigns the corresponding number of seats
1 | proportional(seats, counter)
|
seats |
"Number of seats assigned to the analyzed costituency" |
counter |
"Named vector of total parliament seats won by each party in previously analyzed costituencies" |
Updated counter of parliament seats for each party
1 2 3 | seats = 10
counter = c(1,2,3,0,4,1) #in the used dataset, 6 parties are running in the election
counter = proportional(seats,counter)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.