import_data: Imports election data

Description Usage Arguments Value Examples

Description

Takes data argument supplied, checks file type, and uses appropriate read-in functions to import the data

Usage

1
import_data(data, header)

Arguments

data

The file, containing ballot or lookup data

header

Whether the first row of the file is a header or not

Value

A data frame

Examples

1
2
import_data("http://www.sfelections.org/results/20161108/data/20161206/20161206_masterlookup.txt",
 header = FALSE)

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