Skip to content

Instantly share code, notes, and snippets.

@AABoyles
Created January 26, 2017 16:24
Show Gist options
  • Save AABoyles/f2f483f9769c5d5a10b169a0c7d736a8 to your computer and use it in GitHub Desktop.
Save AABoyles/f2f483f9769c5d5a10b169a0c7d736a8 to your computer and use it in GitHub Desktop.
SupremeCourtFill
library(readr)
library(dplyr)
nominees <- read_csv("https://docs.google.com/spreadsheets/d/1xsjTL6DbfEyR57MoZD3lIG8tTU-yblRA9ehQuaoj9Wg/pub?gid=0&single=true&output=csv")
confirmations <- nominees %>%
filter(Result == "confirmed")
longConfirmations <- confirmations %>%
filter(Days > 62)
SenateAttempts <- nominees %>%
filter(! Result %in% c("declined"))
SenateLong <- SenateAttempts %>%
filter(Days > 62)
SenateMatch <- SenateAttempts %>%
filter(Party == SenateControl)
SenateMatchConfirmations <- SenateMatch %>%
filter(Result == "confirmed")
SenateMatchLong <- SenateMatchConfirmations %>%
filter(Days > 62)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment