View source: R/first_preference_shares.R
Given counts/shares of ballot orderings in various formats, returns a vector with the proportion of ballots ranking each candidate first.
1 | first_preference_shares(result, split = "")
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.