ex_data_table_step.relop_select_rows: Select rows by condition.

Description Usage Arguments Examples

View source: R/relop_select_rows.R

Description

data.table based implementation.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'relop_select_rows'
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.

Examples

1
2
3
4
5
6
7
8
dL <- build_frame(
    "x", "y" |
    2L , "b" |
    1L , "a" |
    3L , "c" )
rquery_pipeline <- local_td(dL) %.>%
  select_rows_nse(., x <= 2)
dL %.>% rquery_pipeline

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