ranked_ballots {elections.dtree}R Documentation

Construct a set of ranked ballots.

Description

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.

\dots

Additional parameters to pass to ranked_ballots.

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 1.1.2 Index]