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".
qae(...)
... | assignment expressions. |
---|
array of quoted assignment expressions.
qae()
uses
bquote()
.()
quasiquotation escaping notation,
and .(-)
"string quotes, string to name" notation.
ratio <- 2 exprs <- qae(Sepal_Long := Sepal.Length >= ratio * Sepal.Width, Petal_Short = Petal.Length <= 3.5) print(exprs)#> Sepal_Long Petal_Short #> "Sepal.Length >= ratio * Sepal.Width" "Petal.Length <= 3.5"exprs <- qae(Sepal_Long := Sepal.Length >= .(ratio) * Sepal.Width, Petal_Short = Petal.Length <= 3.5) print(exprs)#> Sepal_Long Petal_Short #> "Sepal.Length >= 2 * Sepal.Width" "Petal.Length <= 3.5"# library("rqdatatable") # datasets::iris %.>% # extend_se(., exprs) %.>% # summary(.)