项目作者: favstats

项目描述 :
Transcripts of Democratic Debates as R Package
高级语言: HTML
项目地址: git://github.com/favstats/demdebates2020.git
创建时间: 2020-02-12T01:31:07Z
项目社区:https://github.com/favstats/demdebates2020

开源协议:GNU General Public License v3.0

下载


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
  1. debates_url <- "https://raw.githubusercontent.com/favstats/demdebates2020/master/data/debates.csv"
  2. debates <- readr::read_csv(debates_url)
  1. Install and load the R package like this:
  1. devtools::install_github("favstats/demdebates2020")
  2. library(demdebates2020)

Example

  1. demdebates2020::debates %>%
  2. dplyr::slice(1508:1510) %>%
  3. 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