🤷♂️
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(tidyverse) | |
library(stringr) | |
# Freedom of the Press data --------- | |
# Oh god, Freedom House, why the sam hell do you do these things... | |
FP <- readxl::read_excel("~/Dropbox/data/freedom-house/FOTP1980-FOTP2017_Public-Data.xlsx", sheet=2) %>% | |
repair_names() | |
# Ugh, all right. Let's do this... |
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(tidyverse) | |
States <- read_csv("~/Dropbox/data/COW/states/states2011.csv") | |
# Create a PDF of state-years. ---------- | |
# States data nominally end in 2011, so let's fudge that. | |
States %>% | |
mutate(endyear = ifelse(endyear == 2011, 2015, endyear)) %>% | |
rowwise() %>% |
NewerOlder