food_election: Example Dataset

Description Usage Format Source Examples

Description

Dataset on food election which serves as a simple example for the STV method taken from Wikipedia.

Usage

1
data("food_election")

Format

A data frame with 20 observations and 5 candidates (Oranges, Pears, Chocolate, Strawberries, Sweets). Each record corresponds to one ballot with ranking for each of the candidates.

Source

https://en.wikipedia.org/wiki/Single_transferable_vote#Example

Examples

1
2

Example output

  Oranges Pears Chocolate Strawberries Sweets
1      NA    NA         1            2     NA
2      NA    NA         1            2     NA
3      NA    NA         1            2     NA
4       2     1        NA           NA     NA
5      NA    NA        NA            1     NA
6       1    NA        NA           NA     NA

vote documentation built on Feb. 5, 2022, 1:08 a.m.