Learn R Programming

learningr (version 0.29.1)

obama_vs_mccain: Obama vs. McCain

Description

State-by-state voting information in the 2008 US presidential election, along with contextual information on income, unemployment, ethnicity and religion.

Arguments

Format

A data frame with 52 observations (one for each US state) and the following columns.

State

The name of the US state.

Region

The US Federal region.

Obama

Percentage of voters who voted for Barack Obama in the 2008 presidential election.

McCain

Percentage of voters who voted for John McCain in the 2008 presidential election.

Turnout

Percentage of people who voted in the 2008 presidential election.

Unemployment

Percentage of people who are unemployed.

Income

Mean annual income in US dollars.

Population

Number of people living in the state.

Catholic

Percentage of people identifying as Catholic.

Protestant

Percentage of people identifying as Protestant.

Other

Percentage of people identifying as religious, but not Catholic or Protestant.

Non.religious

Percentage of people identifying as non-religious.

Black

Percentage of people identifying as black.

Latino

Percentage of people identifying as Latino.

Urbanization

Percentage of people living in an urban area.

References

This dataset was kindly compiled and provided by Edwin Thoen edwinthoen@hotmail.com.

The voting information came from http://www.uselectionatlas.org/, extracted on 2011-12-09.

The ethnicity, income and urbanisation information came from http://quickfacts.census.gov, extracted on 2011-12-09.

The unemployment information came from http://data.bls.gov/timeseries/LNS14000000, extracted 2011-12-09.

The religious information came from Table 12 of the American Religious Identification Survey 2008. http://commons.trincoll.edu/aris/files/2011/08/ARIS_Report_2008.pdf.