import_data: Imports election data

Description Usage Arguments Value Examples

View source: R/cleaning_functions.R

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("https://sfelections.org/results/20161108/data/20161206/20161206_masterlookup.txt",
 header = FALSE)

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