Data Wrangling with Presidential Polling Data

Step 1: Read in the data set

Data: tidy presidential polling averages data (link).

#Your code here

Step 2: Explore the data

#Your code here

What are the underlying variables and observations?

Step 3: Data wrangling

Pivot the data so that we have one variable with the polling estimate, and one indicating the candidate with each polling estimate entry.

#Your code here

Step 4: Visualization

Create a line chart visualization that compares the two candidates’ polling percentages over time.

  • Add clear labels

  • Set the scale of the y axis to show all values between 0 to 50%

#Your code here