Skip to contents

Location data

Reference datasets for Norwegian geographic locations: codes, names, hierarchies, and redistricting weights.

nor_locations_names()
Location codes and names for Norwegian geographic units
nor_locations_hierarchy_from_to()
Location hierarchies in Norway
nor_locations_redistricting()
Redistricting weights for Norwegian geographic units

Population data

Norwegian population counts aggregated by municipality and custom age categories, optionally split by sex.

nor_population_by_age_cats()
Norwegian population aggregated into custom age categories
nor_population_by_sex_age_cats()
Population in Norway by sex and age categories

Location-code utilities

Functions that derive or attach geographic metadata from location codes.

location_code_to_granularity_geo()
Convert location codes to granularity_geo
location_code_to_iso3()
Convert location codes to ISO 3166-1 alpha-3 country codes
add_granularity_geo_to_data_set()
Add a granularity_geo column to a data set
add_iso3_to_data_set()
Add an iso3 column to a data set

Package configuration

Read and update package-wide settings such as the active border year.

config
Package configuration environment
set_config()
Set package configuration options

Character utilities

Named lists of Norwegian and Swedish special characters for use in scripts and labels.

nb
Norwegian characters in unicode
se
Swedish characters in unicode