Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

klassR (version 0.1.2)

Classifications and Codelists for Statistics Norway

Description

Functions to search, retrieve and apply classifications and codelists using Statistics Norway's API from the system 'KLASS'. Retrieves classifications by date with options to choose language, hierarchical level and formatting.

Copy Link

Version

Install

install.packages('klassR')

Monthly Downloads

260

Version

0.1.2

License

Apache License 2.0

Maintainer

Susie Jentoft

Last Published

October 9th, 2019

Functions in klassR (0.1.2)

ListFamily

Classification family list Print a list of all families and the number of classifications in each
MakeUrl

Internal function to create URL address
splitChar

insert missing dots to the right place in a string
MakeChar

Conversion to character
levelCheck

checking which level input data is
klassdata

Testdata for klassR package
SearchKlass

Search Klass
formattering

Convert vector to the right format
ListKlass

Classification list Get a full list of all classifications and codelists
GetVersion

Get version number of a class given a date
GetUrl2

Get json file from Url - alternative version
Levels

Title
ApplyKlass

Match and convert a classification
GetNums

Get target ID numbers from Url
GetFamily

Identify corresponding family from a classification number
ConvertTable

Code level convert table (internal function)
GetUrl

Get json file from Url
CorrespondList

Correspondence list Print a list of correspondence tables for a given klass with source and target IDs
CheckDate

Internal function to check date
GetKlass

Fetch classification data Fetch Statistics Norway classification data using API
GetName

Get the name of a classification version