Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
cd2.cpg
cd2.dbf
cd2.prj
cd2.qpj
cd2.shp
cd2.shx
cd2map.png
countycode-fips converter.csv
electionR.r
readme.MD
turnout.r

readme.MD

2016 Minnesota primary election scraper

Two R scripts that download election data from the Minnesota Secretary of State's FTP server, process that data, and output CSVs and a map.

The scripts are specific for the Aug. 9, 2016 primary election; one of them is specific to the 2nd Congressional District GOP primary. However, techniques in the scripts can be easily generalized for other races.

A username and password to access the FTP server is required but not provided.

The scripts can be run repeatedly from the command line as results are updated.

The map produced by the script:

CD2 map

This code, and all code published on the Pioneer Press Github, is made available under the MIT License.