first_preference_shares: Extract first-preference shares from an ordinal election...

Description Usage Arguments

View source: R/first_preference_shares.R

Description

Given counts/shares of ballot orderings in various formats, returns a vector with the proportion of ballots ranking each candidate first.

Usage

1

Arguments

result

The election result specified as a named list, with each name being candidate names in order, e.g. "Breed_Leno_Kim" or "ABC" or "Remain > Deal > No deal"

split

The character on which to split the orderings to recover candidate names.


aeggers/votevizr documentation built on June 4, 2021, 9:10 p.m.