nor_locations_names: Location codes and names for Norwegian geographic units

View source: R/nor_locations_names.R

nor_locations_namesR Documentation

Location codes and names for Norwegian geographic units

Description

Returns a data.table of all Norwegian geographic units with their location codes, display names, and presentation metadata. Coverage includes nation, counties, municipalities, city districts (Oslo, Bergen, Stavanger, Trondheim), BA-regions, and lab regions.

Usage

nor_locations_names(border = csdata::config$border_nor)

Arguments

border

Integer. The geographic border year determining which administrative boundaries are used. Valid values: 2024. Defaults to csdata::config$border_nor.

Value

A data.table with one row per geographic unit and the columns:

location_code

Location code (e.g. "nation_nor", "county_nor03").

location_name

Full location name.

location_name_short

Abbreviated name: 1-letter for nation and county, shorter display name for Oslo and Bergen city districts.

location_name_description_nb

Location name with a parenthetical description of geographic level (Norwegian Bokmal).

location_name_file_nb_utf

Name suitable for use in file names, retaining Norwegian characters.

location_name_file_nb_ascii

Name suitable for use in file names, with Norwegian characters replaced by ASCII equivalents.

location_order

Integer giving the preferred presentation order.

granularity_geo

Geographic granularity: one of "nation", "georegion", "mtregion", "county", "municip", "baregion", "wardoslo", "wardbergen", "wardstavanger", "wardtrondheim", "extrawardoslo", "lab".

Source

https://no.wikipedia.org/wiki/Liste_over_norske_kommunenummer

Examples

d <- nor_locations_names()
head(d)
d[granularity_geo == "county"]

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