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