qe: Quote expressions.

View source: R/qae.R

qeR Documentation

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.

Details

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

Value

array of quoted assignment expressions.

See Also

qc, qae

Examples


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)


wrapr documentation built on Aug. 20, 2023, 1:08 a.m.