Learn R Programming

crunch (version 1.14.4)

expressions: Construct Crunch Expressions

Description

Crunch Expressions, i.e. CrunchExpr and CrunchLogicalExpr, encapuslate derivations of Crunch variables, which are only evaluated when passed to a function like as.vector. They allow you to compose functional expressions of variables and evaluate them against the server only when appropriate.

Usage

"!"(x)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"%in%"(x, table)
"=="(e1, e2)
"=="(e1, e2)
"!="(e1, e2)
"!="(e1, e2)
"is.na"(x)
bin(x)
rollup(x, resolution = rollupResolution(x))

Arguments

x
an input
table
For %in%. See match
e1
an input
e2
an input
resolution
For rollup. Either NULL or a character in c("Y", "Q", "M", "W", "D", "h", "m", "s", "ms") indicating the unit of time at which a Datetime variable should be aggregated. If NULL, the server will determine an appropriate resolution based on the range of the data.

Value

Most functions return a CrunchExpr or CrunchLogicalExpr. as.vector returns an R vector.