Skip to contents

The dataset name has been changed to 'govrace10_tbl_df' to avoid confusion with other packages in the R ecosystem from which datasets have been sourced. This naming convention helps distinguish this dataset as part of the 'usdatasets' package and assists users in identifying its specific characteristics. The suffix 'tbl_df' identifies the dataset as a tibble. The original content of the dataset has not been modified in any way.

Usage

data(govrace10_tbl_df)

Format

A tibble with 37 observations and 23 variables:

id

Identification number (numeric).

state

State name (character).

abbr

State abbreviation (character).

name1

Name of the first candidate (character).

perc1

Percentage of votes for the first candidate (numeric).

party1

Political party 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

Political party 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

Political party 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

Political party 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

Political party of the fifth candidate (character).

votes5

Number of votes for the fifth candidate (numeric).

Source

2010 Gubernatorial Races