label: Separates single column election data frames.

Description Usage Arguments Value Examples

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" 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

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

rcv documentation built on May 2, 2019, 8:35 a.m.

Related to label in rcv...