gerda_data_list: List of GERDA Data

View source: R/gerda_data_list.R

gerda_data_listR Documentation

List of GERDA Data

Description

This function lists the available GERDA data sets. The purpose of this function is to quickly provide a list of available data sets and their descriptions.

Usage

gerda_data_list(print_table = TRUE)

Arguments

print_table

A logical value indicating whether to print the table in the console (TRUE) or return the data as a tibble (FALSE). Default is TRUE.

Details

In addition to downloadable datasets, the package includes bundled covariate data accessible via dedicated functions:

  • gerda_covariates: County-level INKAR covariates (1995-2022)

  • gerda_census: Municipality-level Census 2022 data

The returned tibble carries structured metadata beyond the name and description. Use print_table = FALSE to access these columns:

election_type

municipal, state, federal, county-kreistag, european, mayoral, landrat, crosswalk, or covariate.

geographic_level

municipality, county, wahlkreis, or person.

year_start, year_end

Election year range, or NA where the dataset has no explicit stated span (e.g. crosswalks and covariates).

boundary

Harmonization target (unharmonized, harmonized, current, raw, 2021, 2023, 2025, or NA).

formats

Available download formats ("csv,rds" or "rds").

candidate_info

TRUE if the dataset includes person-level candidate / office-holder identities.

Value

A tibble containing the available GERDA data with descriptions and structured metadata. When print_table = TRUE, the function prints a formatted table (name and description) to the console and invisibly returns the full tibble. When print_table = FALSE, the function directly returns the tibble.

Examples

gerda_data_list()

# Access the structured metadata (geographic level, years, formats, ...)
meta <- gerda_data_list(print_table = FALSE)
meta[meta$election_type == "federal", ]


gerda documentation built on July 27, 2026, 5:09 p.m.