clean_ballot: Master one-step cleaning function

Description Usage Arguments Value Examples

View source: R/cleaning_functions.R

Description

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

Usage

1
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" (in progress), 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

1
2
clean_ballot(ballot = sf_bos_ballot, b_header = TRUE,
lookup = sf_bos_lookup, l_header = TRUE, format = "WinEDS")

ds-elections/rcv documentation built on Feb. 18, 2020, 8:34 p.m.