find_node_by_name | R Documentation |
Recursively searches through a tree structure to find a node with a specific name. The search is performed depth-first and returns the first matching node found.
find_node_by_name(node, target_name)
node |
Node object representing the current position in the tree. Should have:
|
target_name |
Character string specifying the name to search for |
The function handles NULL inputs safely and performs a recursive depth-first search through the tree structure. It checks node names and recursively searches through child nodes.
Node object if found, NULL otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.