Learn R Programming

dslabs (version 0.8.0)

polls_2008: Poll data for popular vote in 2008 presidential election

Description

Data from different pollsters for the popular vote between Obama and McCain in the 2008 presidential election.

Usage

polls_2008

Arguments

Format

An object of class data.frame.

Details

  • day. Days until election day. Negative numbers are reported so that days can increase up to 0, which is election day.

  • margin. Average difference between Obama and McCain for that day.

Examples

Run this code
with(polls_2008, plot(day, margin))

Run the code above in your browser using DataLab