# NOT RUN {
# To convert data frame to tidy data (long) format, run:
library(dplyr)
library(tidyr)
library(stringr)
ahca_polls_tidy <- ahca_polls %>%
gather(opinion, count, -c(start, end, pollster, text, url))
# }
Run the code above in your browser using DataLab