Wide format of the `USelection` data, watered down to democratic and republican votes.

elections

Format

A tibble with 564 rows and 10 columns

year

year of election

state

name of the state

state_po

two-letter abbreviation of state

votes_dem

number of votes for the Democratic candidate

votes_rep

number of votes for the Republican candidate

perc_dem

percent of votes for the Democratic candidate

perc_rep

percent of votes for the Republican candidate

totalvotes

number of total votes

cand_dem

name of the Democratic candidate

cand_rep

name of the Republican candidate