Skip to content

📦 R package to track changes for regional codes in Norway

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

helseprofil/norgeo

Repository files navigation

norgeo

R build status Codecov test coverage Download GitHub R package version (branch)

Intro

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.

Installation

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")

Usage

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

Output

Among the output produced by the function track_change() is as follows:

output-result

output-result

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!