View source: R/UpdateKlass-graph-navigate.R
update_klass_node | R Documentation |
Given a node and a graph, find the node at the end of a sequence of changes.
update_klass_node(graph, node)
graph |
A graph generated by |
node |
A node as returned by |
A sequence of vertices, starting with node
and ending with the
last visited node.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.