nest_expr: Nest expressions as a functional chain

View source: R/UTILS-nest_expr.R

nest_exprR Documentation

Nest expressions as a functional chain

Description

Nest expressions as a functional chain

Usage

nest_expr(
  ...,
  .start = TRUE,
  .end = .start,
  .parse = getOption("table.express.parse", FALSE)
)

Arguments

...

Expressions that will be part of the functional chain.

.start

Whether to add a start_expr() call at the beginning of the chain.

.end

Whether to add an end_expr() call at the end of the chain.

.parse

Logical. Whether to apply rlang::parse_expr() to obtain the expressions.

Details

All expressions in ... are "collapsed" with %>%, passing the ExprBuilder's captured data.table as the initial parameter. Names are silently dropped.

The chain is evaluated eagerly and saved in the ExprBuilder instance to be used during final expression evaluation.

To see more examples, check the vignette, or the table.express-package entry.


table.express documentation built on April 3, 2023, 5:43 p.m.