Description Usage Arguments Value Author(s) References See Also Examples
Count votes using the score (or range) method. Voters give each candidate a score, the scores are added and the candidate(s) with the highest (or lowest) totals is/are elected.
1 2 3 4 5 6 7 8 |
votes |
Matrix or data frame containing the votes which should be numbers between 0 and |
nseats |
Number of candidates to be elected. |
max.score |
Maximum score allowed. It is used to remove invalid votes. If not given, the maximum value contained in the data is taken and thus, all non-negative votes are valid. |
larger.wins |
Logical argument indicating whether the winners are the candidates with the highest scores (default) or the lowest scores. |
fsep |
If |
quiet |
If |
... |
Not used. |
object |
Object of class |
Function score
returns an object of class vote.score
which is a list with the following objects:
elected |
Vector of names of the elected candidates in the order in which they were elected. |
totals |
Vector of total votes in the same order as candidates (columns) in the input data. |
larger.wins |
Input argument of the same name. |
data |
Input data with invalid votes removed. |
invalid.votes |
Number of invalid votes that were removed from the original dataset. |
Hana Sevcikova, Adrian Raftery
https://en.wikipedia.org/wiki/Range_voting
1 2 3 4 |
Results of Score voting
=======================
Number of valid votes: 620
Number of invalid votes: 0
Number of candidates: 10
Number of seats: 1
| |Candidate |Total |Elected |
|:---|:---------|:-----|:-------|
|1 |Li |2759 |x |
|2 |Jasper |2724 | |
|3 |Roisin |2118 | |
|4 |Julie |1940 | |
|5 |Hillary |1833 | |
|6 |Tilmann |1759 | |
|7 |Claire |1692 | |
|8 |Declan |1302 | |
|9 |Oscar |1230 | |
|10 |Wang |1229 | |
|Sum | |18586 | |
Elected: Li
Results of Score voting
=======================
Number of valid votes: 620
Number of invalid votes: 0
Number of candidates: 10
Number of seats: 1
| |Candidate |Total |Elected |
|:---|:---------|:-----|:-------|
|1 |Li |2759 |x |
|2 |Jasper |2724 | |
|3 |Roisin |2118 | |
|4 |Julie |1940 | |
|5 |Hillary |1833 | |
|6 |Tilmann |1759 | |
|7 |Claire |1692 | |
|8 |Declan |1302 | |
|9 |Oscar |1230 | |
|10 |Wang |1229 | |
|Sum | |18586 | |
Elected: Li
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.