sf_bos_clean

0th

Percentile

Cleaned ballot image data from a San Francisco RCV election

A tidied version of `sf_bos_ballot` in a "tall" format, readable to see voters' information, including candidate rankings, precinct, and over-/under-vote codings. Cleaned with clean_ballot. clean_ballot(sf_bos_ballot, b_header = T, sf_bos_lookup, l_header = T, format = "WinEDS")

Keywords
datasets
Usage
sf_bos_clean
Format

A data frame with 643806 rows and 9 variables:

contest

which election this candidate ranking applies to

pref_voter_id

a unique key identifying an individual voter

serial_number

the serial number of the voting machine used

tally

contains information about whether the ballot was cast in early voting, was filed provisionally, and other factors

precinct

which city precinct the voter voted in

vote_rank

the rank given to the candidate by the voter; in the San Francisco case can take values of 1, 2, or 3

candidate

the chosen candidate for the specified vote rank

over_vote

a dummy variable, coded 1 if the ballot shows more votes cast than the number of candidates to be elected

under_vote

a dummy variable, coded 1 if the ballot shows no valid selection made for a candidate

Aliases
  • sf_bos_clean
Documentation reproduced from package rcv, version 0.2.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.