Check if a Node
is the root
Set a formatter function on a specific node
Sample Data: A Simple Company with Departments
Checks whether name
is a reserved word, as defined in NODE_RESERVED_NAMES_CONST
.
Get an attribute from a Node.
Climb a tree from parent to children, by provided criteria.
Traverse a Tree and Collect Values
Convert a a SplitNode
from the party package to a data.tree
structure.
Check if a Node
is a leaf
Clone a tree (creates a deep copy)
Write a data.tree
structure to Newick notation
Traverse a tree or a sub-tree
Create a tree for demo and testing
Aggregate child values of a Node
, recursively.
Convert an object to a data.tree
data structure
Convert a data.frame
to a data.tree
structure
Traverse a Tree and Assign Values
Convert a dendrogram
to a data.tree Node
Convert a nested list
structure to a data.tree
structure
Check if a Node
is not a leaf
Register a method for a suggested dependency
Convert a data.tree
structure to a list-of-list structure
Convert a Node
to a dendrogram
Executes a function on a set of nodes
Convert a Node
to a phylo object from the ape package.
Convert an rpart
object to a data.tree
structure
Test whether all node names are unique.
Navigate to another node by relative path.
Convert a data.tree
structure to an igraph network
Convert a data.tree
structure to a data.frame
Find a node by name in the (sub-)tree
Check if a Node
is not a root
Sort children of a Node
or an entire data.tree
structure
Print a Node
in a human-readable fashion.
data.tree: Hierarchical Data Structures
Create a data.tree
Structure With Nodes
Convert a phylo
object from the ape package to a Node
Calculate the average number of branches each non-leaf has
Plot a graph, or get a graphviz dot representation of the tree
Convert a a party
from the partykit package to a data.tree
structure.
Calculates the height of a Node
given the height of the root.
Find the distance between two nodes of the same tree
Format a Number as a Decimal
Prunes a tree.
Format a Number as a Percentage
Sample Data: Data Used by the ID3 Vignette
Reverts the sort order of a Node
's children.
Create a tree for demo and testing
Cumulate values among siblings
Determine the number a Node
has after conversion to a phylo object
NODE_RESERVED_NAMES_CONST
Names that are reserved by the Node class.