openintro (version 1.7.1)

govRace10: Election results for 2010 Governor races in the U.S.

Description

Election results for 2010 Governor races in the U.S.

Usage

data(govRace10)

Arguments

Format

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

id

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

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

Examples

Run this code
# NOT RUN {
data(govRace10)
table(govRace10[,c("party1", "party2")])
# }

Run the code above in your browser using DataCamp Workspace