Climb | R Documentation |
This method lets you climb the tree, from crutch to crutch. On each Node
, the
Climb
finds the first child having attribute value equal to the the provided argument.
#node$Climb(...)
Climb(node, ...)
node |
The root |
... |
an attribute-value pairlist to be searched. For brevity, you can also provide a character vector to search for names. |
the Node
having path ...
, or NULL
if such a path does not exist
Node
Navigate
data(acme)
#the following are all equivalent
Climb(acme, 'IT', 'Outsource')
Climb(acme, name = 'IT', name = 'Outsource')
Climb(acme, 'IT')$Climb('Outsource')
Navigate(acme, path = "IT/Outsource")
Climb(acme, name = 'IT')
Climb(acme, position = c(2, 1))
#or, equivalent:
Climb(acme, position = 2, position = 1)
Climb(acme, name = "IT", cost = 250000)
tree <- CreateRegularTree(5, 2)
tree$Climb(c("1", "1"), position = c(2, 2))$path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.