Harmonize municipality codes across boundary reforms
Source:R/harmonize.R
brreg_harmonize_kommune.RdRemap municipality_code (kommunenummer) to the classification
valid at a target date, using correspondence tables from SSB's
KLASS system (classification 131). Handles the 2020 municipal
reform (428 → 356 municipalities) and 2024 county reversals.
Usage
brreg_harmonize_kommune(
data,
target_date = Sys.Date(),
col = "municipality_code"
)Value
The input tibble with two added columns:
{col}_harmonized (the remapped code) and
{col}_target_name (municipality name at the target date).
Unmatched codes pass through unchanged.
See also
brreg_harmonize_nace() for NACE code harmonization.
Other tidybrreg harmonization functions:
brreg_harmonize_nace()