Package: klassR 1.0.8

Øyvind I. Berntsen

klassR: Classifications for Statistics Norway

Functions to search, retrieve, apply and update classification standards and code lists using Statistics Norway's API <https://dataportal.ssb.no/classifications?types=Classifications> from the system 'Klass'. Retrieves classifications by date with options to choose language, hierarchical level and formatting.

Authors:Susie Jentoft [aut], Diana-Cristina Iancu [aut], Lisa Li [aut], Øyvind I. Berntsen [aut, cre], Statistics Norway [cph]

klassR_1.0.8.tar.gz
klassR_1.0.8.zip(r-4.7-any)klassR_1.0.8.zip(r-4.6-any)klassR_1.0.8.zip(r-4.5-any)
klassR_1.0.8.tgz(r-4.6-any)klassR_1.0.8.tgz(r-4.5-any)
klassR_1.0.8.tar.gz(r-4.7-any)klassR_1.0.8.tar.gz(r-4.6-any)
klassR_1.0.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
klassR/json (API)

# Install 'klassR' in R:
install.packages('klassR', repos = c('https://statisticsnorway.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/statisticsnorway/ssb-klassr/issues

Pkgdown/docs site:https://statisticsnorway.github.io

Datasets:

On CRAN:

Conda:

4.97 score 5 stars 31 scripts 530 downloads 17 exports 25 dependencies

Last updated from:d73e3dc6c1. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK266
source / vignettesOK378
linux-releaseOK211
macos-releaseOK248
macos-oldrelOK190
windows-develOK213
windows-releaseOK212
windows-oldrelOK187
wasm-releaseOK119

Exports:apply_klassApplyKlasscorrespond_listfind_equivalent_codesfind_equivalentsget_familyget_klassget_nameget_versionGetKlassklass_graphklass_nodelist_familylist_klasssearch_klassupdate_klassupdate_klass_node

Dependencies:askpassBHclicpp11curlgluehttrigraphjsonlitelatticelifecyclemagrittrMatrixmimeNLPopensslpkgconfigR6Rcpprlangslamsystmvctrsxml2

Readme and manuals

Help Manual

Help pageTopics
Test data for changes in municipality codes from 1963 onwardsapi_endringer_1963
Test data for changes in municipality codes from 2019 onwardsapi_endringer_2019
Match and convert a classificationApplyKlass apply_klass
Correspondence list Print a list of correspondence tables for a given classification with source and target IDsCorrespondList correspond_list
Find equivalent sets of codes in a Klass classificationfind_equivalents find_equivalent_codes
Find the equivalent sets of a node at various datesfind_equivalent_nodes
Identify corresponding family from a classification numberGetFamily get_family
Fetch Statistics Norway classification data using APIGetKlass get_klass
Get the name of a classification versionGetName get_name
Get version number of a class given a dateGetVersion get_version
Test Graph data for municipalities in 1964klass_131_1964_graph
Test Graph data for municipalities in 2020klass_131_2020_graph
Test Graph data for municipalities in 2024klass_131_graph
Build a directed graph of code changes based on a Klass classificationklass_graph
Given a Klass graph, find the node corresponding to a code and (optionally) a date.klass_node
Testdata for klassR packageklassdata
Classification family list Print a list of all families and the number of classifications in eachListFamily list_family
Classification list Get a full list of all classifications and codelistsListKlass list_klass
Search KlassSearchKlass search_klass
Update multiple Klass codes to a desired date.update_klass
Given a node and a graph, find the node at the end of a sequence of changes.update_klass_node