Learn R Programming

wrapr (version 2.0.2)

qe: Quote expressions.

Description

Accepts arbitrary un-parsed expressions as to allow forms such as "Sepal.Length >= 2 * Sepal.Width". (without the quotes).

Usage

qe(...)

Arguments

...

assignment expressions.

Value

array of quoted assignment expressions.

Details

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

See Also

qc, qae

Examples

Run this code
# NOT RUN {
ratio <- 2

exprs <- qe(Sepal.Length >= ratio * Sepal.Width,
             Petal.Length <= 3.5)
print(exprs)

exprs <- qe(Sepal.Length >= .(ratio) * Sepal.Width,
             Petal.Length <= 3.5)
print(exprs)

# }

Run the code above in your browser using DataLab