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