Wraps `import_data`, `label`, and `characterize` to clean the ballot image in one step.
clean_ballot(ballot, b_header, lookup, l_header, format)
The raw ballot image
Whether the ballot image has a header line or not
The raw lookup image
Whether the lookup image has a header line or not
A character string detailing the format. Current supported formats are "WinEDS" and "ChoicePlus" (forthcoming), based on common types of software used. Contact creators with suggestions for more formats.
The ballot data, but now "readable" so votes can be understood
# NOT RUN {
clean_ballot(ballot = sf_bos_ballot, b_header = TRUE,
lookup = sf_bos_lookup, l_header = TRUE, format = "WinEDS")
# }
Run the code above in your browser using DataLab