wrapr (version 2.1.0)

qae: Quote assignment expressions (name = expr, name := expr, name %:=% expr).

Description

Accepts arbitrary un-parsed expressions as assignments to allow forms such as "Sepal_Long := Sepal.Length >= 2 * Sepal.Width". (without the quotes). Terms are expressions of the form "lhs := rhs", "lhs = rhs", "lhs %:=% rhs".

Usage

qae(...)

Value

array of quoted assignment expressions.

Arguments

...

assignment expressions.

Details

qae() uses bquote() .() quasiquotation escaping notation, and .(-) "string quotes, string to name" notation.

See Also

qc, qe

Examples

Run this code

ratio <- 2

exprs <- qae(Sepal_Long := Sepal.Length >= ratio * Sepal.Width,
             Petal_Short = Petal.Length <= 3.5)
print(exprs)

exprs <- qae(Sepal_Long := Sepal.Length >= .(ratio) * Sepal.Width,
             Petal_Short = Petal.Length <= 3.5)
print(exprs)

# library("rqdatatable")
# datasets::iris %.>%
#  extend_se(., exprs) %.>%
#  summary(.)

Run the code above in your browser using DataLab