label: Separates single column election data frames.

Description Usage Arguments Value Examples

View source: R/cleaning_functions.R

Description

Takes a data frame of a single column (i.e. sf_bos_ballot) and splits it into usable named columns.

Usage

1

Arguments

data

A data frame with a single column

image

Whether the data is a "ballot" or "lookup" image

format

A character string detailing the format. Current supported formats are "WinEDS" (used in San Francisco and Alameda counties) and "ChoicePlus" (in progress, used in Cambridge, MA), based on common types of software used. Contact the creators with suggestions for more formats.

Value

A data frame with multiple columns

Examples

1
label(data = sf_bos_ballot, image = "ballot", format = "WinEDS")

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