Learn R Programming

fivethirtyeight (version 0.5.0)

ahca_polls: American Health Care Act Polls

Description

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.

Usage

ahca_polls

Arguments

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.

Examples

Run this code
# 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