dublin_west: Election Dataset to Dublin West Constituency

dublin_westR Documentation

Election Dataset to Dublin West Constituency

Description

Dataset containing ranked votes for the Dublin West constituency in 2002, Ireland. Results of that STV elections can be viewed at https://en.wikipedia.org/wiki/Dublin_West#2002_general_election. They can be reproduced via the stv function, see Example below.

Usage

data("dublin_west")

Format

A data frame with 29988 observations and 9 candidates. Each record corresponds to one ballot with candidates being ranked between 1 and 9 with zeros allowed.

References

https://en.wikipedia.org/wiki/Dublin_West#2002_general_election

Examples

data(dublin_west)
head(dublin_west)

## Not run: 
# produce similar results as in the Wikipedia link above
dwstv <- stv(dublin_west, nseats = 3, eps = 1, constant.quota = TRUE)

# plot results
plot(dwstv)
image(dwstv)
image(dwstv, all.pref = TRUE)
## End(Not run)

vote documentation built on May 29, 2024, 8:35 a.m.