hier_nodenames {sdcHierarchies} | R Documentation |
Extract name of nodes (levels)
Description
This function allows to extract the all the names of the nodes including all (sub)-nodes and leaves in the given hierarchy.
Usage
hier_nodenames(tree, root = NULL)
Arguments
tree |
a (nested) hierarchy created using |
root |
(character) name of start node from which all lower level-names should be returned |
Examples
h <- hier_create(root = "Total", nodes = LETTERS[1:3])
h <- hier_add(h, root = "A", nodes = c("a1", "a5"))
hier_nodenames(h)
[Package sdcHierarchies version 0.21.0 Index]