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

View source: R/qae.R

qaeR Documentation

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(...)

Arguments

...

assignment expressions.

Details

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

Value

array of quoted assignment expressions.

See Also

qc, qe

Examples


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(.)


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