Skip to contents

The dataset name has been changed to 'houserace10_tbl_df' to avoid confusion with other packages in the R ecosystem. This naming convention helps distinguish this dataset as part of the 'usdatasets' package and identifies it as a tibble. The original content of the dataset has not been modified.

Usage

data(houserace10_tbl_df)

Format

A tibble with 435 observations and 24 variables:

id

Unique race identifier (numeric).

state

Name of the state (character).

abbr

State abbreviation (character).

num

District number (numeric).

name1

Name of the first candidate (character).

perc1

Percentage of votes for the first candidate (numeric).

party1

Party affiliation of the first candidate (character).

votes1

Number of votes for the first candidate (numeric).

name2

Name of the second candidate (character).

perc2

Percentage of votes for the second candidate (numeric).

party2

Party affiliation of the second candidate (character).

votes2

Number of votes for the second candidate (numeric).

name3

Name of the third candidate (character).

perc3

Percentage of votes for the third candidate (numeric).

party3

Party affiliation of the third candidate (character).

votes3

Number of votes for the third candidate (numeric).

name4

Name of the fourth candidate (character).

perc4

Percentage of votes for the fourth candidate (numeric).

party4

Party affiliation of the fourth candidate (character).

votes4

Number of votes for the fourth candidate (numeric).

name5

Name of the fifth candidate (character).

perc5

Percentage of votes for the fifth candidate (numeric).

party5

Party affiliation of the fifth candidate (character).

votes5

Number of votes for the fifth candidate (numeric).

Source

2010 U.S. House of Representatives Election Data