get_code | R Documentation |
This function will download the codes of selected geographical levels via API.
get_code(
type = c("fylke", "okonomisk", "kommune", "bydel", "levekaar", "grunnkrets"),
from = NULL,
to = NULL,
date = FALSE,
names = TRUE
)
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 |
A dataset of class data.table
consisting codes of selected
geographical level and the duration the codes are valid ie. from and to.
mydata <- get_code("kommune", from = 2017, to = 2019)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.