Description Usage Arguments Value References Examples
Instant-runoff voting (IRV) method is also 
called alternative voting, 
transferable voting, ranked-choice voting, 
single-seat ranked-choice voting, or preferential voting.
In the 1st round, the candidate with absolute majority (that 
is, with more than 50 percent) wins. If no absolute winner exists, 
the one who gets the least votes is deleted, all other 
candidates enter into the 2nd round. Again, if no 
absolute winner exists, let the one with the least votes go and 
start the 3rd round... Finally, an absolute winner will 
appear. Ties are solved with different methods in reality; however, 
this function applies the following rules: (a) if more than 
one candidate gets the least votes, let all of them go; (b) if 
all the candidates get the same number of votes in a certain round, 
then all of them are winners. Note: the function accepts 
object of class vote and the method can only be 
used when x$approval_able is TRUE, that is, there is 
no duplicated values in the score matrix; otherwise, 
the winner will be NULL.
| 1 | irv_method(x, min_valid = 1)
 | 
| x | an object of class  | 
| min_valid | default is 1. If the number of valid entries of a ballot is less than this value, the ballot will not be used. | 
a list object.
 (1) call the function call.
 (2) method the counting method.
 (3) candidate candidate names.
 (4) candidate_num number of candidate.
 (5) ballot_num number of ballots in x.
 (6) valid_ballot_num number of ballots that are 
used to compute the result.
 (7) winner the winners, may be NULL.
 (8) absolute whether the winner wins absolute majority in the
1st round.
 (9) other_info the IRV may run for 2 or more rounds. So here 
the summary information of each round is recorded. The length of the list is 
equal to the number of rounds.
Reilly, B. 2004. The global spread of preferential voting: Australian institutional imperialism? Australian Journal of Political Science, 39(2), 253-266.
| 1 2 3 4 5 6 7 | 
MATCHING NAMES AND SCORES
COUNTING NA AND DUP VALUES
MAKING CONDORCET TABLE
COLLECTING RESULT
DONE
SELECTING
------ROUND: 1
------ROUND: 2
------ROUND: 3
COLLECTING RESULT
DONE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.