qqply: Repeatedly expand an expression against sequences of values.

Description Usage Arguments Value Author(s) See Also Examples

Description

Performs template expansion as for qq, but evaluates over sequences (as in mapply).

Usage

1

Arguments

...

In the first argument list, one or more expressions or expressions to expand. These may have names, which will also be expanded. In the second argument list, vectors with optional names. The expressions will be expanded in a context that has these names bound to one value at a time from each sequence (inheriting from the calling frame).

Value

For qqply, a list of expressions. For qeply, the expressions will be evaluated in the calling frame.

Author(s)

Peter Meilstrup

See Also

qq bquote

Examples

1
2
3
4
5
6
7
qqply(`.(x)` = .(y))(x=letters[1:3], y=1:3)

qe(function(
    .=...( qqply(`.(..1)`=.(..2))(letters, 1:26))) {
  ...(qqply(.(as.name(x)) <- .(as.name(y)))(y=letters[2:26], x=letters[1:25]))
  e
})

crowding/vadr documentation built on May 14, 2019, 11:33 a.m.