Description Usage Format Fields Methods Examples

A specified function call as an ASTNode

1 |

`R6Class`

object.

`value`

The name of the function.

`r_expr`

A string containing the raw r expression from inside the parenthesis

`new(value, r_expr)`

Create one with the given value and r_expr

`terms()`

Returns the node

`factors()`

Returns self as a factor

`distribute()`

Applies the distributive property to the node, and returns the resulting node.

`string()`

Returns the string formula of the node

`reduce(data)`

Given a set of data, perform the logical reduction of the current node.

1 | ```
ASTFunction$new("log", "x+2")$string()
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.