rcv (version 0.2.0)

label: Separates single column election data frames.

Description

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

Usage

label(data, image, format)

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" and "ChoicePlus" (forthcoming), based on common types of software used. Contact creators with suggestions for more formats.

Value

A data frame with multiple columns

Examples

Run this code
# NOT RUN {
label(data = sf_bos_ballot, image = "ballot", format = "WinEDS")
# }

Run the code above in your browser using DataLab