irv_winners | R Documentation |
Takes a data frame of simulated ordinal elections (one election per row, one ballot ordering per column) and returns a data fram of IRV winners.
irv_winners(sims)
sims |
A tibble of simulations, with an 'id' column and a (named) column for each distinct ballot (e.g. ABCD, ABDC,...) |
A tibble with columns 'id' and 'winner'
sims <- simulate_ordinal_results_from_dirichlet(k = 3, n = 10)
irv_winners(sims)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.