Precinct level results from the 2016 general election for all Iowa precincts. This data was modified from the data provided by MIT Election Data and Science Lab by focussing on Iowa precinct results from the general presidential election in 2016.

ia_election_2016

Format

A data frame with 36,960 rows and 15 variables:

year

Year of the election.

state

State of election (here, `Iowa`).

county_name

Name of the county.

county_fips

FIPS code of county.

county_ansi

ANSI code of the county.

jurisdiction

County of jurisdiction.

precinct

Precinct name

candidate

Name of the candidate

candidate_normalized

Normalized name of the candidate.

writein

Is candidate a write-in?

party

Party affiliation of the candidate.

mode

How was vote cast? Absentee or at Polling station.

votes

Number of votes cast in precinct.

candidate_fec

Federal Election identifier of the candidate's campaign.

candidate_fec_name

Name associated with the campaign.

Source

https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/LYWX3D

Author

MIT Election Data and Science Lab (Massachusetts Institute of Technology)

Examples

library(ggplot2) library(dplyr) ia_election_2016 %>% ggplot() + geom_bar(aes(x = candidate, weight = votes)) + coord_flip()