rcv (version 0.2.0)

import_data: Imports election data

Description

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

Usage

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

Run this code
# NOT RUN {
import_data("http://www.sfelections.org/results/20161108/data/20161206/20161206_masterlookup.txt",
 header = FALSE)
# }

Run the code above in your browser using DataLab