A Node in an Abstract Syntax Tree (AST)
A Node in an Abstract Syntax Tree (AST)
format
Any formatting directive passed to this node.
value
A string of addtional information contained by the node.
distribute()
Distributes data across multiplications and rearranges nodes
ASTNode$distribute()
string()
Returns string representation of node
ASTNode$string()
reduce()
Given a set of data, associates it with AST nodes
ASTNode$reduce(data)
data
(data.frame) data to associate across nodes
set_format()
Override the formatting directive for this node
ASTNode$set_format(x)
x
(numeric,character) the formatting directive
clone()
The objects of this class are cloneable with this method.
ASTNode$clone(deep = FALSE)
deep
Whether to make a deep clone.
This is the root R6 class of any term of the AST which is created when parsing a table formula. This should only be used as a base class as the class information carries the semantic meaning of a given node.