Description Details Note Author(s) Examples
Expressions are used as inputs to GLAs, as well as for other tasks such as generation and filtering.
An expression specified in the following manner:
Only the following operators are allowed:
Urnary: + - !
Arithmetic: + - * / % << >>
Logical: == != && ||
Regex: %match%
%match% is a logical valued operator used for regex
matching. Evaluates to TRUE
if and only if the first operand
matches the second operand, a regular expression given as a string.
The only function call allowed is .()
. This is used for
partial evaluation at compile time. In particular, this is useful
for calling R functions as well as refering to name-value bindings in
the R environment.
Outside of calls to .()
, only attribute names of the
corresponding data and constants are allowed.
For the most part, the expression is not evaluated at all. Instead, it is parsed and its abstract syntax tree is visited and translated.
Jon Claus, <jonterainsights@gmail.com>, Tera Insights LLC
1 2 3 4 5 6 | ## Basic expression
(att1 + att2) * att3
## Use of .()
a <- 1
(att1 + .(a)) * att3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.