A dataset containing results of all US Presidential elections by state from 1976 to 2016. This data was provided by the MIT Election Data + Science Lab.

USelections

Format

An object of class data.frame with 3740 rows and 14 columns.

year

Year of the election between 1976 and 2016

state

Name of the US state

state_po

U.S. postal code state abbreviation

state_fips

State FIPS code

state_cen

U.S. Census state code

state_ic

ICPSR state code

office

U.S. President

candidate

Name of the candidate

party

Party of the candidate

writein

Vote totals associated with write-in candidates

candidatevotes

Votes received by this candidate for this particular party

totalvotes

Total number of votes cast for this election

version

Date of final version

notes

logical vector

Source

https://doi.org/10.7910/DVN/42MVDX

References

MIT Election Data and Science Lab, 2017, "U.S. President 1976–2016", https://doi.org/10.7910/DVN/42MVDX, Harvard Dataverse, V5.