# Get the covariates data
covs <- gerda_covariates()
# Inspect the data
head(covs)
summary(covs)
# Manual merge (advanced)
library(dplyr)
elections <- load_gerda_web("federal_cty_harm")
merged <- elections %>%
left_join(covs, by = c("county_code" = "county_code", "election_year" = "year"))
Run the code above in your browser using DataLab