This function will download the codes of selected geographical levels via API.
Usage
get_code(
type = c("fylke", "okonomisk", "kommune", "bydel", "levekaar", "grunnkrets"),
from = NULL,
to = NULL,
date = FALSE,
names = TRUE
)
Arguments
- type
Type of regional granularity ie. fylke, kommune etc.
- from
Specify the starting year for range period. Current year is the default.
- to
Specify the year to end the range period. Current year is used when not specified.
- date
Give complete date if TRUE else year only. Default it FALSE
- names
Include names. Default is TRUE