View source: R/no_regioninndeling.R
regnavn.at.ref.yr | R Documentation |
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å.
regnavn.at.ref.yr(regionstat, ref.yr = lubridate::year(lubridate::now()))
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 |
tibble having the regional statistics including the regional names and codes for the reference year in question
regnavn.at.ref.yr(regionstat = t12750()) %>% glimpse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.