Given a node and a graph, find the node at the end of a sequence of changes.
Source:R/UpdateKlass-graph-navigate.R
update_klass_node.Rd
Given a node and a graph, find the node at the end of a sequence of changes.
Arguments
- graph
A graph generated by
klass_graph
.- node
A node as returned by
klass_node
orV
.
Examples
# Build a graph directed towards the most recent codes.
library(klassR)
klass_131 <- klass_graph(131)
# Find the most recent node in the graph representing the code "0101" (Halden,
# valid to 2020.)
halden_node <- klass_node(klass_131, "0101")
# Find the most recent code corresponding to 0101 Halden
halden_node_updated <- update_klass_node(klass_131, halden_node)