ASTBranch {tangram} | R Documentation |
A left/right branch in an Abstract Syntrax Tree. This inherits from ASTNode, and is intended to be a base class as well. Should never be instantiated directly as once again the semantic information is contained in the class name.
Description
A left/right branch in an Abstract Syntrax Tree. This inherits from ASTNode, and is intended to be a base class as well. Should never be instantiated directly as once again the semantic information is contained in the class name.
A left/right branch in an Abstract Syntrax Tree. This inherits from ASTNode, and is intended to be a base class as well. Should never be instantiated directly as once again the semantic information is contained in the class name.
Format
R6Class
object.
Super class
tangram::ASTNode
-> ASTBranch
Public fields
left
A pointer to the left node below this one
right
A pointer to the right node below this one
Methods
Public methods
Inherited methods
Method distribute()
Call to distribute multiplication nodes, just recursively calls left and right node distribute functions
Usage
ASTBranch$distribute()
Method reduce()
Attached data to nodes by processing data.frame appropriatly. Recursively calls left and right nodes to reduces on data.frame
Usage
ASTBranch$reduce(df)
Arguments
df
(data.frame) Data frame to reduce over
Method clone()
The objects of this class are cloneable with this method.
Usage
ASTBranch$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.