ranked_ballots {elections.dtree} | R Documentation |
Construct a set of ranked ballots.
Description
Deprecated in favour of functionality from the 'prefio' package.
ranked_ballots
is used to easily construct a set of ranked ballots.
Usage
ranked_ballots(x, candidates = NULL, ...)
Arguments
x |
A character vector representing a single ballot, or a list of character vectors representing multiple ballots. |
candidates |
A character vector of names corresponding to the candidates running in the election. |
... |
Additional parameters to pass to |
Value
A ranked_ballots
object representing the ballot(s).
Examples
ranked_ballots(LETTERS[1:5])
ranked_ballots(list(LETTERS[1:5], LETTERS[6:1]))
[Package elections.dtree version 2.0.0 Index]