This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(rio) | |
| library(tidyverse) | |
| library(spotifyr) | |
| library(fuzzyjoin) | |
| library(ggrepel) | |
| #lets get the rapper's vocabulary count data | |
| rappers <- import("https://docs.google.com/spreadsheets/d/1HIIfgDpNMM-j0hoQHN-yP5P1lNOfJuvym0u0sdWwD9g/edit#gid=737896402") %>% | |
| filter(!is.na(recalc)) %>% #rm those that we don't have word count data for | |
| as_tibble() %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #webscraping livrustkammaren to create a age-tenure graph of Swedish regents | |
| #inspired by https://gist.github.com/acoppock | |
| library(rvest) | |
| library(tidyverse) | |
| library(stringr) | |
| library(lubridate) | |
| library(ggrepel) | |
| library(stringr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #webscraping wiki to create a age-tenure graph of Swedish PMs | |
| #inspired by https://gist.github.com/acoppock | |
| library(rvest) | |
| library(tidyverse) | |
| library(stringr) | |
| library(lubridate) | |
| library(ggrepel) | |
| library(stringr) |