Learn R Programming

norgeo

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:

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!

Copy Link

Version

Install

install.packages('norgeo')

Monthly Downloads

82

Version

2.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Yusman Kamaleri

Last Published

August 15th, 2023

Functions in norgeo (2.3.1)

norgeo-package

norgeo : A package for tracking geo codes changes in Norway
get_code

Get the codes of geographical levels
get_correspond

Get geo corresponds
raw

Where raw data will be kept
dataApi

Where downloaded data will be kept
track_change

Track all changes for codes from API
geo_save

Save geo codes
find_correspond

Find existing correspond
get_change

Get geo code changes with API
GrunnkretsBefore2002

Grunnkrets Change Before 2002
cast_geo

Cast geo granularity from API
track_merge

Get geo code that are merged after code change
track_split

Get geo code that are split after code change
%>%

Pipe operator