Overview

Data about the results was collected from CNN's 2016 election center. Each county has the breakdown of how many votes each candidate recieved in that county and what percentage of the total vote from that county that the candidate recieved. The candidate's political party is also represented.

http://www.cnn.com/election/primaries/counties/va/Dem

Downloads

Download all of the following files.

Usage

This library has 1 function you can use.
(require "election.rkt")
(get-results false)
Additionally, some of the functions can optionally return Big Data using an extra argument. If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
(require "election.rkt")
; These may be slow!
(get-results true)

Documentation

 get-results(test)

Returns the result of each primary for every county from the dataset.