Learn R Programming

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

klassR (version 0.2.3)

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.2.3

License

MIT + file LICENSE

Maintainer

Susie Jentoft

Last Published

January 15th, 2024

Functions in klassR (0.2.3)

stop_quietly

Stop quietly function Stop from a function without an error. Used for stopping when no internet
Levels

Title
check_connect

Check connection Function to check that a connection to data.ssb.no is able to be established
ListFamily

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

Conversion to character
klassdata

Testdata for klassR package
get_variant_name

Get variant name Internal function for fetching the variant name based on the number
formattering

Convert vector to the right format
GetBaseUrl

Get base address for fetching classifications from
GetName

Get the name of a classification version
GetKlass

Fetch classification data Fetch Statistics Norway classification data using API
CorrespondList

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

Match and convert a classification
ListKlass

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

Search Klass
GetFamily

Identify corresponding family from a classification number
GetVersion

Get version number of a class given a date
GetNums

Get target ID numbers from Url
GetUrl2

Get json file from Url - alternative version
MakeUrl

Internal function to create URL address
GetUrl

Get json file from Url
levelCheck

Check which level input data/vector is
CheckDate

Internal function to check date
splitChar

insert missing dots to the right place in a string
ConvertTable

Code level convert table (internal function)