electoral | R Documentation |
Polls and election results from the 2012 US Election
A list with two data frames: polls is a data frame of 51 rows and 4 variables
State name
Number of electoral votes in the 2012 election
Margin between the parties with the highest number of votes and second highest number of votes. These margins are based on polls.
logical vector True, if the democratic party is the majority party in this state.
'election' is a data frame of 51 rows and 5 variables
State name
character string of the winner: Romney or Obama
Number of electoral votes in the 2012 election
Margin between the parties with the highest number of votes and second highest number of votes. These margins are based on the actual election outcome
logical vector True, if the democratic party is the majority party in this state.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.