wrap: Wrap a data frame for later execution.

View source: R/wrap_ex.R

wrapR Documentation

Wrap a data frame for later execution.

Description

Create a table description that includes the actual data. Prevents wastefull table copies in immediate pipelines. Used with ex().

Usage

wrap(d, ..., table_name = NULL, env = parent.frame())

Arguments

d

data.frame

...

not used, force later argument to be referred by name

table_name

character, name of table

env

environment to work in.

Value

a table description, with data attached

Examples


if(requireNamespace('rqdatatable')) {
 d <- data.frame(x = 1:3, y = 4:6)
 d %.>%
   wrap(.) %.>%
   extend(., z := x + y) %.>%
   ex(.)
}


rquery documentation built on Aug. 20, 2023, 9:06 a.m.