View source: R/get-correspond.R
get_correspond | R Documentation |
This function will get the corresponding geo code of specific granularity via API from SSB whenever available.
get_correspond(
type = c("fylke", "okonomisk", "kommune", "bydel", "levekaar"),
correspond = c("fylke", "kommune", "bydel", "grunnkrets"),
from = NULL,
to = NULL,
dt = TRUE,
names = TRUE
)
type |
Higher granularity from specified correspond arg. |
correspond |
Lower granularity from the specified type arg. |
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. |
dt |
Output as data.table |
names |
Include names. Default is TRUE |
A dataset of class data.table
representing the lower geographical
level codes and their corresponding higher geographical levels. For example
for codes on enumeration areas and their corresponding codes for
municipalities or town.
df <- get_correspond("kommune", "grunnkrets", 2019)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.