Regional granularity levels in Norway which are depicted by different codes, have undergone several changes over the years. Identifying when codes have changed and how many changes have taken place over several years can be troublesome. This package will help to identify these changes and track when the changes have taken place. The codes are based on those available from SSB.
norgeo
package can be installed directly from CRAN or via GitHub
page of Helseprofil. To install from
CRAN:
install.packages("norgeo")
If you want to install the development version then use pak
package to
access to the GitHub. Running the codes below will install
development version of norgeo
.
if(!require(pak)) install.packages("pak")
pak::pkg_install("helseprofil/norgeo")
The data is downloaded via API form SSB Klass. To learn how to use the different functions in norgeo, please read the tutorial under Get Started
Among the output produced by the function track_change()
is as
follows:
The data elucidate the complexity of all the codes change. For Larvik for instance, the municipality has grown in 2020 with the inclusion of Lardal. Therefore the code for Larvik has changed twice. How about Holmestrand? When there are more than 350 municipalities with different code changes, then tracking these can be a nightmare. The same with enumeration units ie. grunnkretser with 14000 units!