clean_ballot

0th

Percentile

Master one-step cleaning function

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

Aliases
  • clean_ballot
Examples
# NOT RUN {
clean_ballot(ballot = sf_bos_ballot, b_header = TRUE,
lookup = sf_bos_lookup, l_header = TRUE, format = "WinEDS")
# }
Documentation reproduced from package rcv, version 0.2.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.