food_election: Example Dataset

food_electionR Documentation

Example Dataset

Description

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

Usage

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

data(food_election)
head(food_election)

hanase/vote documentation built on Jan. 17, 2024, 2:46 p.m.