Skip to contents

The dataset name has been changed to 'senaterace10_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(senaterace10_tbl_df)

Format

A tibble with 38 observations and 23 variables:

id

Numeric identifier for the election race.

state

Character string indicating the U.S. state where the election took place.

abbr

Character string representing the state abbreviation.

name1

Character string indicating the name of the first candidate.

perc1

Numeric indicating the percentage of votes received by the first candidate.

party1

Character string indicating the party affiliation of the first candidate.

votes1

Numeric indicating the total votes received by the first candidate.

name2

Character string indicating the name of the second candidate.

perc2

Numeric indicating the percentage of votes received by the second candidate.

party2

Character string indicating the party affiliation of the second candidate.

votes2

Numeric indicating the total votes received by the second candidate.

name3

Character string indicating the name of the third candidate.

perc3

Numeric indicating the percentage of votes received by the third candidate.

party3

Character string indicating the party affiliation of the third candidate.

votes3

Numeric indicating the total votes received by the third candidate.

name4

Character string indicating the name of the fourth candidate.

perc4

Numeric indicating the percentage of votes received by the fourth candidate.

party4

Character string indicating the party affiliation of the fourth candidate.

votes4

Numeric indicating the total votes received by the fourth candidate.

name5

Character string indicating the name of the fifth candidate.

perc5

Numeric indicating the percentage of votes received by the fifth candidate.

party5

Character string indicating the party affiliation of the fifth candidate.

votes5

Numeric indicating the total votes received by the fifth candidate.

Source

Data on U.S. Senate races held in 2010, including candidates' names, vote percentages, and party affiliations.