Skip to contents

Election results for the 2010 U.S. Senate races

Usage

senaterace10

Format

A data frame with 38 observations on the following 23 variables.

id

Unique identifier for the race, which does not overlap with other 2010 races (see govrace10 and houserace10)

state

State name

abbr

State name abbreviation

name1

Name of the winning candidate

perc1

Percentage of vote for winning candidate (if more than one candidate)

party1

Party of winning candidate

votes1

Number of votes for winning candidate

name2

Name of candidate with second most votes

perc2

Percentage of vote for candidate who came in second

party2

Party of candidate with second most votes

votes2

Number of votes for candidate who came in second

name3

Name of candidate with third most votes

perc3

Percentage of vote for candidate who came in third

party3

Party of candidate with third most votes

votes3

Number of votes for candidate who came in third

name4

Name of candidate with fourth most votes

perc4

Percentage of vote for candidate who came in fourth

party4

Party of candidate with fourth most votes

votes4

Number of votes for candidate who came in fourth

name5

Name of candidate with fifth most votes

perc5

Percentage of vote for candidate who came in fifth

party5

Party of candidate with fifth most votes

votes5

Number of votes for candidate who came in fifth

Source

MSNBC.com, retrieved 2010-11-09.

Examples


library(ggplot2)

ggplot(senaterace10, aes(x = perc1)) +
  geom_histogram(binwidth = 5) +
  labs(x = "Winning candidate vote percentage")
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_bin()`).