hier_match | R Documentation |
This function returns a data.table
that maps original
and default codes.
hier_match(tree, nodes = NULL, inputs = "orig")
tree |
an input derived from |
nodes |
|
inputs |
(character) specifies what kind of node names are
provided in argument
|
a data.table
with the following columns:
"orig"
: the original node names
'"default": the standardized names
"is_bogus"
: TRUE
if the code is a "bogus"
(duplicated)
node.
h <- hier_create(root = "Tot", nodes = letters[1:5])
h <- hier_add(h, root = "a", nodes = "a0")
h2 <- hier_convert(tree = h, as = "dt")
hier_match(tree = h, nodes = c("a", "b"), inputs = "orig")
hier_match(tree = h2, nodes = c("01", "02"), inputs = "default")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.