Learn R Programming

rdecision (version 1.1.2)

DecisionNode: A decision node in a decision tree

Description

An R6 class representing a decision node in a decision tree.

Arguments

Author

Andrew J. Sims andrew.sims@newcastle.ac.uk

Super class

rdecision::Node -> DecisionNode

Methods

Inherited methods


Method new()

Create a new decision node.

Usage

DecisionNode$new(label)

Arguments

label

A 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.

Returns

A new DecisionNode object.


Method clone()

The objects of this class are cloneable with this method.

Usage

DecisionNode$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

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.