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")
sf_bos_clean
A data frame with 643806 rows and 9 variables:
which election this candidate ranking applies to
a unique key identifying an individual voter
the serial number of the voting machine used
contains information about whether the ballot was cast in early voting, was filed provisionally, and other factors
which city precinct the voter voted in
the rank given to the candidate by the voter; in the San Francisco case can take values of 1, 2, or 3
the chosen candidate for the specified vote rank
a dummy variable, coded 1 if the ballot shows more votes cast than the number of candidates to be elected
a dummy variable, coded 1 if the ballot shows no valid selection made for a candidate