The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
load_gerda_web() and
gerda_data_list():
county_elec_unharm, county_elec_harm_21,
county_elec_harm_21_cty,
county_elec_harm_21_munieuropean_muni_unharm, european_muni_harmmayoral_unharm,
mayoral_harm, mayoral_candidates,
mayor_panel, mayor_panel_harm,
mayor_panel_annual,
mayor_panel_annual_harmmunicipal_harm_25, state_harm_21,
state_harm_23, state_harm_25ags_1990_to_2023_crosswalk,
ags_1990_to_2025_crosswalk,
crosswalk_ags_2021_to_2023,
crosswalk_ags_2021_2022_to_2023,
crosswalk_ags_2023_to_2025 (RDS only),
crosswalk_ags_2023_24_to_2025 (RDS only),
crosswalk_ags_2024_to_2025 (RDS only)ags_area_pop_emp_2023federal_cty_unharm now also exposes
county_code and election_year columns,
matching the schema used by all other county-level GERDA datasets. This
allows the dataset to be piped into add_gerda_covariates()
without manual renaming.ags (5-digit county code) and
year columns remain for backwards compatibility but are
deprecated and scheduled for removal in
v0.7. Please update code that references
federal_cty_unharm$ags or
federal_cty_unharm$year to use county_code and
election_year instead. A one-time message is printed on
each load.load_gerda_web() now downloads datasets to a tempfile
before reading them. This fixes loading of xz-compressed RDS files
(e.g. ags_1990_to_2025_crosswalk), which
readr::read_rds() could not stream from a URL.load_gerda_web() so the larger GERDA files
(mayor_panel_annual_harm,
federal_muni_harm_21) no longer time out on first pull over
slower connections. The user’s original timeout is restored on
exit.add_gerda_covariates() help example, which
grouped on a non-existent county_code_21 column after
merging covariates into municipal data.load_gerda_web() gains an on_error
argument ("warn" default, "stop" for
pipelines). Set options(gerda.on_error = "stop") to flip
the default globally. Previous behaviour (warning + NULL)
is unchanged.party_crosswalk() now lists all 21 available
destinations in the help page and in its error message. A typo like
party_crosswalk(..., "family_nme") now tells you exactly
which column names are valid.gerda_data_list(print_table = TRUE) prints each row on
a single uncut line. Dataset pairs like
federal_muni_harm_21 and federal_muni_harm_25
are now distinguishable by description in narrow terminals.load_gerda_web() help now documents that major-party
vote-share columns do not sum to 1: the remainder is held by
smaller-party columns and the other bucket.left_join() calls don’t trip on year vs
election_year or on the municipal county
column not being a 5-digit AGS code.DESCRIPTION updated to list all six election families
and the correct federal coverage window (federal county-level since
1953).README.md install section documents
build_vignettes = TRUE for development installs from
GitHub.knitr moved from Imports to Suggests (only needed as
VignetteBuilder).tests/testthat/test-load_gerda_web.R split into five
focused files (-validation, -fuzzy,
-extensions, -catalog, -schema)
to keep concerns separable as the catalog grows.federal_cty_unharm alias + deprecation message, and the new
on_error argument. Suite grew from 240 to 300 tests.gerda_census() – access Census 2022 data (10,786
municipalities, 16 variables)gerda_census_codebook() – data dictionary for census
variablesadd_gerda_census() – merge census data with election
data (supports both municipality and county level)stats to Imports (for
weighted.mean() in county-level census aggregation)gerda_covariates and
gerda_census modulesfederal_muni_harm dataset with clear migration
guidancefederal_muni_harm now correctly suggests
federal_muni_harm_21 and
federal_muni_harm_25)gerda_data_list() in all error
messages to help users discover available datasetsgerda_covariates and
gerda_covariates_codebook)add_gerda_covariates() - One-step helper
to merge covariates with election datagerda_covariates() - Access raw covariate
data (400 counties, 20 variables)gerda_covariates_codebook() - View data
dictionary with variable descriptionsfederal_muni_harm_21: Federal elections harmonized to
2021 boundaries (1990-2025)federal_muni_harm_25: Federal elections harmonized to
2025 boundaries (1990-2025)federal_muni_harm dataset (replaced by
boundary-specific versions)federal_muni_harm_21 or
federal_muni_harm_25 depending on their boundary
harmonization needsThese binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.