Learn R Programming

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

klassR (version 0.2.0)

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

238

Version

0.2.0

License

Apache License 2.0

Maintainer

Susie Jentoft

Last Published

January 19th, 2023

Functions in klassR (0.2.0)

MakeChar

Conversion to character
Levels

Title
stop_quietly

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

Convert vector to the right format
levelCheck

Check which level input data/vector is
splitChar

insert missing dots to the right place in a string
GetVersion

Get version number of a class given a date
klassdata

Testdata for klassR package
get_variant_name

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

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

Get the name of a classification version
GetKlass

Fetch classification data Fetch Statistics Norway classification data using API
GetNums

Get target ID numbers from Url
GetFamily

Identify corresponding family from a classification number
CorrespondList

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

Code level convert table (internal function)
GetBaseUrl

Get base address for fetching classifications from
ApplyKlass

Match and convert a classification
CheckDate

Internal function to check date
GetUrl

Get json file from Url
check_connect

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

Get json file from Url - alternative version
SearchKlass

Search Klass
MakeUrl

Internal function to create URL address
ListKlass

Classification list Get a full list of all classifications and codelists