Classifications and Codelists for Statistics Norway


[Up] [Top]

Documentation for package ‘klassR’ version 1.0.0

Help Pages

count_neighbors Count the neighbors of a node.
find_dates For a given Klass code, produce a table of dates describing the valid-from and valid-to dates of all versions of the code
find_name Find the name of a code valid at a specific date.
find_variant_from Find the variant of a code corresponding to a change *from* a specific code.
find_variant_to Find the variant of a code corresponding to a change *to* a specific code.
get_klass_changes Get all changes that have occurred in a Klass classification
is_combined Given a graph and a node, determine if the node is a result of combinations of multiple codes.
is_split Given a graph and a node, determine if the node is a split code.
klassdata Testdata for klassR package
klass_131_1964_graph Test Graph data for municipalities in 1964
klass_131_2020_graph Test Graph data for municipalities in 2020
klass_131_graph Test Graph data for municipalities in 2024
klass_graph Build a directed graph of code changes based on a Klass classification
klass_node Given a Klass graph, find the node corresponding to a code and (optionally) a date.
update_code Update a code found in a directed graph based on a Klass-classification
update_klass Update multiple Klass codes to a desired date.
update_klass_node Given a node and a graph, find the node at the end of a sequence of changes.