The raw data behind the story "Why The GOP Is So Hell-Bent On Passing An Unpopular Health Care Bill" https://fivethirtyeight.com/features/why-the-gop-is-so-hell-bent-on-passing-an-unpopular-health-care-bill.

ahca_polls

Format

A data frame with 15 rows representing polls and 7 variables:

start

Start date of the poll.

end

End date of the poll.

pollster

The entity that conducts and collects information from the poll.

favor

The number of affirmative responses to the question at the pollster.

oppose

The number of negative responses to the question at the pollster.

url

The website associated with the polling question.

text

The polling question asked at the pollster.

Source

See https://github.com/fivethirtyeight/data/blob/master/ahca-polls/README.md

Examples

# To convert data frame to tidy data (long) format, run: library(dplyr)
#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
library(tidyr) library(stringr) ahca_polls_tidy <- ahca_polls %>% gather(opinion, count, -c(start, end, pollster, text, url))