powered by
The root ASTNode of a formula.
R6Class object.
R6Class
tangram::ASTNode -> tangram::ASTBranch -> ASTTableFormula
tangram::ASTNode
tangram::ASTBranch
ASTTableFormula
left
The AST tree for the columns.
right
The AST tree for the rows.
ASTTableFormula$new()
ASTTableFormula$terms()
ASTTableFormula$string()
ASTTableFormula$clone()
Inherited methods tangram::ASTNode$set_format() tangram::ASTBranch$distribute() tangram::ASTBranch$reduce()
tangram::ASTNode$set_format()
tangram::ASTBranch$distribute()
tangram::ASTBranch$reduce()
new()
Create a new formula node
ASTTableFormula$new(left, right)
The left side of the "~" as an AST
The right side of the "~" as an AST
terms()
Returns all terminal nodes from left and right
string()
A re-parseable string representing the AST
clone()
The objects of this class are cloneable with this method.
ASTTableFormula$clone(deep = FALSE)
deep
Whether to make a deep clone.
ASTTableFormula$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()
Run the code above in your browser using DataLab