nor_locations_redistricting: Redistricting weights for Norwegian geographic units

View source: R/nor_locations_redistricting.R

nor_locations_redistrictingR Documentation

Redistricting weights for Norwegian geographic units

Description

Returns a data.table of weighting factors used to convert historical data recorded under old administrative boundaries to the 2024 borders. Each row maps an original location code (as of a given calendar year) to the current location code, with a proportional weighting.

Usage

nor_locations_redistricting(border = csdata::config$border_nor)

Arguments

border

Integer. The target geographic border year. Valid values: 2024. Defaults to csdata::config$border_nor.

Value

A data.table with columns:

location_code_current

Location code under the target border year.

location_code_original

Location code as it existed in calyear.

calyear

The calendar year to which location_code_original applies.

weighting

Proportional weight to apply when aggregating from the original location to the current location (values sum to 1 within each location_code_original / calyear group).

granularity_geo

Geographic granularity: one of "nation", "county", "municip", "wardbergen", "wardoslo", "wardstavanger", "wardtrondheim", "missingwardbergen", "missingwardoslo", "missingwardstavanger", "missingwardtrondheim", "notmainlandcounty", "notmainlandmunicip", "missingcounty".

Source

Statistics Norway (SSB) municipal reform documentation.

Examples

d <- csdata::nor_locations_redistricting()
head(d)
d[calyear == 2019 & granularity_geo == "municip"]

csdata documentation built on July 3, 2026, 1:07 a.m.