rcv (version 0.2.0)

clean_ballot: Master one-step cleaning function

Description

Wraps `import_data`, `label`, and `characterize` to clean the ballot image in one step.

Usage

clean_ballot(ballot, b_header, lookup, l_header, format)

Arguments

ballot

The raw ballot image

b_header

Whether the ballot image has a header line or not

lookup

The raw lookup image

l_header

Whether the lookup image has a header line or not

format

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.

Value

The ballot data, but now "readable" so votes can be understood

Examples

Run this code
# 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