Learn R Programming

crunch (version 1.3.2)

variable-extract: "Subset" a Variable

Description

These methods subset variables by creating Expressions, which can be composed and evaluated as needed.

Usage

## S3 method for class 'CrunchVariable,CrunchExpr':
[(x, i, j, ..., drop = TRUE)

## S3 method for class 'CrunchVariable,numeric': [(x, i, j, ..., drop = TRUE)

## S3 method for class 'CrunchVariable,logical': [(x, i, j, ..., drop = TRUE)

Arguments

x
a Variable
i
a CrunchExpr, logical, or numeric
j
Invalid
...
additional arguments, ignored
drop
Invalid

Value

  • a CrunchExpr containing references to the variable x and the filter logic contained in i