social_choice {elections.dtree}R Documentation

Compute the outcome of an election.

Description

social_choice reads a set of ballots, and computes the outcome of the election. The outcome is described by a vector of winning candidates, along with the elimination order of the losing candidates.

Usage

social_choice(x, ...)

Arguments

x

The set of ballots for which to compute the outcome of the social choice function.

\dots

Additional parameters to pass to social_choice.

Examples

social_choice(ranked_ballots(list(LETTERS[1], LETTERS[1], LETTERS[2])))


[Package elections.dtree version 1.1.2 Index]