ex_data_table_step.relop_non_sql: Direct non-sql (function) node, not implemented for...

Description Usage Arguments See Also Examples

Description

Passes a single table to a function that takes a single data.frame as its argument, and returns a single data.frame.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'relop_non_sql'
ex_data_table_step(
  optree,
  ...,
  tables = list(),
  source_usage = NULL,
  source_limit = NULL,
  env = parent.frame()
)

Arguments

optree

relop operations tree.

...

not used, force later arguments to bind by name.

tables

named list map from table names used in nodes to data.tables and data.frames.

source_usage

list mapping source table names to vectors of columns used.

source_limit

if not null limit all table sources to no more than this many rows (used for debugging).

env

environment to work in.

See Also

rq_df_funciton_node, rq_df_grouped_funciton_node

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
set.seed(3252)
d <- data.frame(a = rnorm(1000), b = rnorm(1000))

optree <- local_td(d) %.>%
  quantile_node(.)
d %.>% optree

p2 <- local_td(d) %.>%
  rsummary_node(.)
d %.>% p2

summary(d)

rqdatatable documentation built on Jan. 23, 2022, 1:06 a.m.