prrace08_tbl_df {usdatasets} | R Documentation |
The dataset name has been changed to 'prrace08_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.
data(prrace08_tbl_df)
A tibble with 51 observations and 7 variables:
Factor indicating the U.S. state (including Washington D.C.) where the election took place.
Factor providing the full name of the U.S. state corresponding to the abbreviation.
Integer representing the number of votes received by Barack Obama in the state.
Numeric representing the percentage of total votes received by Barack Obama in the state.
Integer representing the number of votes received by John McCain in the state.
Numeric representing the percentage of total votes received by John McCain in the state.
Integer indicating the number of electoral votes allocated to the state.
Data on the 2008 U.S. presidential race results by state.