Learn R Programming

tangram (version 0.8.2)

ASTTableFormula: The root ASTNode of a formula.

Description

The root ASTNode of a formula.

The root ASTNode of a formula.

Arguments

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

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

Run this code
ASTTableFormula$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()

Run the code above in your browser using DataLab