ASTTableFormula: The root ASTNode of a formula.

ASTTableFormulaR Documentation

The root ASTNode of a formula.

Description

The root ASTNode of a formula.

The root ASTNode of a formula.

Format

R6Class object.

Super classes

tangram::ASTNode -> tangram::ASTBranch -> ASTTableFormula

Public fields

left

The AST tree for the columns.

right

The AST tree for the rows.

Methods

Public methods

Inherited methods

Method new()

Create a new formula node

Usage
ASTTableFormula$new(left, right)
Arguments
left

The left side of the "~" as an AST

right

The right side of the "~" as an AST


Method terms()

Returns all terminal nodes from left and right

Usage
ASTTableFormula$terms()

Method string()

A re-parseable string representing the AST

Usage
ASTTableFormula$string()

Method clone()

The objects of this class are cloneable with this method.

Usage
ASTTableFormula$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

ASTTableFormula$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()


spgarbet/tg documentation built on Feb. 21, 2023, 3:35 a.m.