Assignment 3
Assignment 3: Analyzing 2016 data “Poll” Data in R In this assignment, I analyze a small dataset of polling results using R. The dataset compares two fictional polls, one from ABC and one from CBS, for seven political candidates. The purpose is to practice data wrangling, visualization, and interpretation with ggplot2 while also reflecting on how to properly use polling data. R Code # Step 1: Define data Name <- c("Jeb", "Donald", "Ted", "Marco", "Carly", "Hillary", "Bernie") ABC_poll <- c( 4, 62, 51, 21, 2, 14, 15) CBS_poll <- c( 12, 75, 43, 19, 1, 21, 19) # Step 2: Create data frame df_polls <- data.frame(Name, ABC_poll, CBS_poll) # Step 3: Inspect data structure and first few rows str(df_...