| DecisionNode | R Documentation |
An R6 class representing a decision node in a decision tree.
A class to represent a decision node in a decision tree. The node
is associated with one or more branches to child nodes. Inherits from class
Node.
rdecision::Node -> DecisionNode
new()Create a new decision node.
DecisionNode$new(label)
labelA label for the node. Must be defined because the label is used in tabulation of strategies. The label is automatically converted to a syntactically valid (in R) name to ensure it can be used as a column name in a data frame.
A new DecisionNode object.
grob()Creates a grid::grob for drawing a decision node.
DecisionNode$grob(x, y, bb = FALSE)
xx coordinate of the node, unit object.
yy coordinate of the node, unit object.
bbLogical. If TRUE, function returns the bounding box.
A grob containing the symbol and label, or a bounding box as a grid::unit vector with 4 values: left, right, bottom, top.
clone()The objects of this class are cloneable with this method.
DecisionNode$clone(deep = FALSE)
deepWhether to make a deep clone.
Andrew J. Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.