R Package

The gerda R package provides tools to download and work with GERDA datasets directly in R. Current version: 0.4.0 (CRAN).

Installation

# Install from CRAN
install.packages("gerda")

# Or install development version from GitHub
devtools::install_github("hhilbig/gerda")

Main Functions

Data Loading

Covariates

Party Mapping

Usage Examples

library(gerda)

# List available datasets
gerda_data_list()

# Load harmonized municipal election data
municipal <- load_gerda_web("municipal_harm", verbose = TRUE)

# Load federal county data with socioeconomic covariates
federal_county <- load_gerda_web("federal_cty_harm") %>%
  add_gerda_covariates()

# View covariate definitions
gerda_covariates_codebook()

# Map party names to ParlGov
party_crosswalk(c("cdu_csu", "spd", "gruene"), "party_name_english")

Documentation

Feedback

Feedback is welcome. Please email hhilbig@ucdavis.edu or open an issue on GitHub.