Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Katz joshkatz

  • The New York Times
  • New York, NY
View GitHub Profile
@joshkatz
joshkatz / .block
Created Jul 10, 2019 — forked from almccon/.block
So you want a bigger Alaska?
View .block
license: gpl-3.0
@joshkatz
joshkatz / .block
Created Mar 1, 2019 — forked from gka/.block
summer-heat
View .block
license: mit
@joshkatz
joshkatz / sotu.R
Created Jan 31, 2018
State of the Union WPM chart
View sotu.R
needs(rvest, tidyverse, zoo)
df <- c('minutes', 'words') %>%
map(function(var) {
doc <- var %>%
sprintf(fmt = 'http://www.presidency.ucsb.edu/sou_%s.php') %>%
read_html()
doc %>%
html_node('table tr:nth-of-type(2) table') %>%
html_table(fill = T) %>%