favstats / demdebates2020

Transcripts of Democratic Debates as R Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demdebates2020

The goal of demdebates2020 is to provide access to all transcripts of the Democratic debates of the 2020 Presidential Election.

Usage

The package includes a single dataset: debates. This dataset represents the spoken words of all Democratic candidates for US president at eleven Democratic debates. The following sources have been used to compile the data: Washington Post, Des Moines Register and rev.com. The dataset has the following eight columns:

  • speaker: Who is speaking
  • background: Reactions from the audience, includes (APPLAUSE) or (LAUGHTER)
    • only availabe for the first seven and ninth debates
  • speech: Transcribed speech
  • type: Candidate, Moderator or Protester
  • gender: The gender of the person speaking
  • debate: Which debate
  • day: Which day of the debate
    • first and second debate were held on two separate days
  • order: The order in which the speech acts were delivered

There are two ways in which you can access the dataset.

  1. Read .csv file directly from GitHub
debates_url <- "https://raw.githubusercontent.com/favstats/demdebates2020/master/data/debates.csv"

debates <- readr::read_csv(debates_url)
  1. Install and load the R package like this:
devtools::install_github("favstats/demdebates2020")

library(demdebates2020)

Example

demdebates2020::debates %>% 
  dplyr::slice(1508:1510) %>% 
  knitr::kable()
speaker background speech type gender debate day order
Bernie Sanders NA One of the differences - one of the differences that Joe and I have in our record is Joe voted for that war, I helped lead the opposition to that war, which was a total disaster. Candidate male 1 2 759
Bernie Sanders (APPLAUSE) NA Candidate male 1 2 760
Bernie Sanders NA Second of all, I helped lead the effort for the first time to utilize the War Powers Act to get the United States out of the Saudi-led intervention in Yemen, which is the most horrific humanitarian disaster on Earth. Candidate male 1 2 761

Blog Post

Check out this blog post for some more data exploration.

Sources

About

Transcripts of Democratic Debates as R Package

License:GNU General Public License v3.0


Languages

Language:HTML 99.4%Language:R 0.6%