Navigate {data.tree} | R Documentation |
Navigate to another node by relative path.
Description
Navigate to another node by relative path.
Usage
Navigate(node, path)
Arguments
node |
The starting |
path |
A string or a character vector describing the path to navigate |
Details
The path
is always relative to the node
. Navigation
to the parent is defined by ..
, whereas navigation to a child
is defined via the child's name.
If path is provided as a string, then the navigation steps are separated
by '/'.
See Also
Examples
data(acme)
Navigate(acme$Research, "../IT/Outsource")
Navigate(acme$Research, c("..", "IT", "Outsource"))
[Package data.tree version 1.1.0 Index]