This is a simple guide to access data data via API.
All functions that has get_
prefix access data directly via SSB API. This is the simple guide to use norgeo API functions:
library(norgeo)
<- get_code("kommune", from = 2015, to = 2021)
dt # only current geo code
<- get_code("kommune", from = 2021) dt
You could also find geo code changes via get_change()
function.
<- get_change("kommune", from = 2015, to = 2021) dtc
To track all geo changes to the current date specified in the argument to
can be done as follows:
<- track_change("kommune", from = 2015, to = 2021) dtt
You can also track the geo codes that are split or merged to a new geo with function track_split()
or track_merge()
.