Code Monkey home page Code Monkey logo

demdebates2020's Introduction

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

demdebates2020's People

Contributors

favstats avatar systats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

systats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.