View source: R/gerda_data_list.R
| gerda_data_list | R Documentation |
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.
gerda_data_list(print_table = TRUE)
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. |
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:
municipal, state, federal, county-kreistag,
european, mayoral, landrat, crosswalk, or covariate.
municipality, county, wahlkreis, or person.
Election year range, or NA where the
dataset has no explicit stated span (e.g. crosswalks and covariates).
Harmonization target (unharmonized, harmonized,
current, raw, 2021, 2023, 2025, or NA).
Available download formats ("csv,rds" or "rds").
TRUE if the dataset includes person-level
candidate / office-holder identities.
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.
gerda_data_list()
# Access the structured metadata (geographic level, years, formats, ...)
meta <- gerda_data_list(print_table = FALSE)
meta[meta$election_type == "federal", ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.