View source: R/UpdateKlass-graph-build.R
klass_graph | R Documentation |
Build a directed graph of code changes based on a Klass classification
klass_graph(classification, date = NULL)
classification |
The ID of the desired classification. |
date |
The date which the edges of the graph should be directed towards. Defaults to the current year plus one, which ensures the graph is directed to the most recent codes. |
An igraph
object with the vertexes representing codes, and
edges representing changes between codes. The direction of the edges
represent changes towards the date specified in date
.
library(klassR)
# Build a graph directed towards the most recent codes
## Not run:
klass_131 <- klass_graph(131)
## End(Not run)
# Build a graph directed towards valid codes in 2020.
## Not run:
klass_131_2020 <- klass_graph(131, "2020-01-01")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.