Navigate: Navigate to another node by relative path.

Description Usage Arguments Details See Also Examples

View source: R/node_methods.R

Description

Navigate to another node by relative path.

Usage

1
Navigate(node, path)

Arguments

node

The starting Node to navigate

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

Climb

Examples

1
2
3
data(acme)
Navigate(acme$Research, "../IT/Outsource")
Navigate(acme$Research, c("..", "IT", "Outsource"))

data.tree documentation built on Aug. 3, 2020, 5:12 p.m.