Node-class | R Documentation |
An S4 class to represent a node in a tree structure.
A structured representation of a node, which encompasses various attributes
such as name, depth, and relationships with other nodes in the tree structure.
The class Node
is primarily used in the creation, manipulation, and
display of nodes within tree structures.
An object of class Node
.
Id
numeric
- Unique sequential identifier for the node.
Name
character
- Name of the node.
IsLeaf
logical
- Flag indicating if the node is a leaf.
IsLeafAndAggregated
logical
- Flag indicating if the node is both
a leaf and an aggregated node.
Children
character
- List of the node's children names.
Sisters
character
- List of the node's sisters names.
Mother
character
- Name of the node's mother.
Aggregation
matrix
- Aggregation table if the node is aggregated.
Probability
numeric
- Estimated weight for aggregation.
Depth
numeric
- Depth of the node in the tree.
Twin
numeric
- ID of the other leaves for nodes with multiple
leaves.
ConditionalProbabilityList
list
- List storing conditional
probabilities.
RangeScale
numeric
- Range scale for the node.
ScaleLabel
character
- Labels corresponding to different scales.
NodePath
character
- Path from the root to the leaf for the node.
print.Node
: For printing a Node object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.