regnavn.at.ref.yr: Region navn og region kode for gitt tidspunkt

View source: R/no_regioninndeling.R

regnavn.at.ref.yrR Documentation

Region navn og region kode for gitt tidspunkt

Description

Denne funksjonen tar regionkoder og regionnavn fra en regional statistikk, henter inn tabell som viser historiske endringer i regional inndeling av Norge og gjør om til riktige koder og navn for et gitt referanseår (ref.yr) Funksjonen fungerer for fylkesnivå inkludert landet ELLER for kommunenivå.

Usage

regnavn.at.ref.yr(regionstat, ref.yr = lubridate::year(lubridate::now()))

Arguments

regionstat

is the regional statistics, where each obs represent one year and one region (fylke eller kommune) The regionstat must have the variables "region_kode" (a Norwegian region code) "aar" (year of registration of the statistics)

ref.yr

is the reference year to which geographic name and code is to be used

Value

tibble having the regional statistics including the regional names and codes for the reference year in question

Examples

regnavn.at.ref.yr(regionstat = t12750()) %>% glimpse()

hbelbo/vsop documentation built on June 13, 2025, 5:10 a.m.