Learn R Programming

elections.dtree (version 2.0.0)

ranked_ballots: 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, ...)

Value

A ranked_ballots object representing the ballot(s).

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.

\dots

Additional parameters to pass to ranked_ballots.

Examples

Run this code
ranked_ballots(LETTERS[1:5])
ranked_ballots(list(LETTERS[1:5], LETTERS[6:1]))

Run the code above in your browser using DataLab