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.
R6Class object.
tangram::ASTNode -> ASTBranch
leftA pointer to the left node below this one
rightA pointer to the right node below this one
Inherited methods
distribute()Call to distribute multiplication nodes, just recursively calls left and right node distribute functions
ASTBranch$distribute()
reduce()Attached data to nodes by processing data.frame appropriatly. Recursively calls left and right nodes to reduces on data.frame
ASTBranch$reduce(df)df(data.frame) Data frame to reduce over
clone()The objects of this class are cloneable with this method.
ASTBranch$clone(deep = FALSE)deepWhether to make a deep clone.