Learn R Programming

dslabs (version 0.9.1)

results_us_election_2012: 2012 US presidential election results

Description

Percentages for the four major candidates by state in the US 2012 presidential elections. It includes congressional districts for Maine and Nebraska.

Usage

results_us_election_2012

Arguments

Format

An object of class "data.frame".

Details

  • state. State in which poll was taken. `U.S` is for national polls.

  • electoral_votes. Electoral votes for that state.

  • obama. Percent obtained by Barack Obama.

  • romney. Percent obtained by Mitt Romney.

  • johnson. Percent obtained by Gary Johnson.

  • stein. Percent obtained by Jill Stein.

Examples

Run this code
head(results_us_election_2012)

Run the code above in your browser using DataLab