powered by
Deprecated in favour of functionality from the `prefio` package. ranked_ballots is used to easily construct a set of ranked ballots.
ranked_ballots
ranked_ballots(x, candidates = NULL, ...)
A ranked_ballots object representing the ballot(s).
A character vector representing a single ballot, or a list of character vectors representing multiple ballots.
A character vector of names corresponding to the candidates running in the election.
Additional parameters to pass to ranked_ballots.
ranked_ballots(LETTERS[1:5]) ranked_ballots(list(LETTERS[1:5], LETTERS[6:1]))
Run the code above in your browser using DataLab