Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Retrieve US election data by year and office from Dave Leip's Atlas of US Presidential Elections
ResourceFunction["USElectionAtlasData"][] retrieves per-state popular vote tallies for the most recent US presidential election. | |
ResourceFunction["USElectionAtlasData"][year] retrieves per-state popular vote tallies for the US presidential election held in year. | |
ResourceFunction["USElectionAtlasData"][year,office] retrieves per-state popular vote tallies for the US election for office held in year. |
Get a Dataset of popular vote totals for the most recent presidential election:
In[1]:= |
Out[1]= |
Get popular vote totals for the 2000 Bush versus Gore election:
In[2]:= |
Out[2]= |
Look at House vote totals for the 2014 midterm elections:
In[3]:= |
Out[3]= |
Get per-candidate popular vote totals from historical presidential races:
In[4]:= |
Out[4]= |
Compare voter turnout for the House between the two most recent midterm elections:
In[5]:= |
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
Look at vote counts for your home state:
In[8]:= |
Out[8]= |
Create a map of the popular vote margin in the 2008 Obama-McCain race:
In[9]:= |
In[10]:= |
Out[10]= |
Count up the total votes cast for Theodore Roosevelt in his four electoral wins:
In[11]:= |
Out[11]= |
Plot vote totals for the popular vote winners of all presidential elections for the last century:
In[12]:= |
Out[12]= |
This work is licensed under a Creative Commons Attribution 4.0 International License