Tree-class {dexisensitivity} | R Documentation |
Tree Class Definition
Description
An S4 class to represent a tree structure.
Details
A structured representation of a tree, which includes several slots to store
attributes, leaves, nodes, path, and additional information related to the
tree structure. The class Tree
is primarily used in the creation,
manipulation, and display of tree structures.
Value
An object of class Tree
.
Slots
NumberOfAttributes
numeric
- Number of attributes in the tree.NumberOfLeaves
numeric
- Number of leaves in the tree.Depth
numeric
- Maximum depth of the tree.Attributes
character
- Names of attributes in the tree.Leaves
character
- Names of leaves in the tree.Aggregated
character
- Names of aggregated nodes in the tree.IsMultiple
logical
- Flag indicating if multiple leaves are present in the tree.Multiple
data.frame
- List of multiple leaves and their count.IsLeafAggregated
logical
- Flag indicating if leaf-aggregated nodes are present in the tree.LeafAggregated
character
- Names of leaf-aggregated nodes in the tree.Paths
list
- Paths from the root to the leaves.Nodes
list
- Nodes present in the tree.EvaluationOrder
numeric
- Evaluation order for LeafAggregated nodes.RootName
character
- Name of the root node.
See Also
-
print.Tree
: For printing a Tree object. -
show.Tree
: For showing a Tree object. -
describe.Tree
: For describing a Tree object.