where: Add binding to function.

Usage Arguments Value Examples

Usage

1
where(FUN, ...)

Arguments

FUN

function

...

binding

Value

FUN with binding

Examples

1
2
3
4
5
velocity <- (function (x1, x2, t1, t2)) %>%
  where(
    dx = x2 - x1,
    dt = t2 - t1)
velocity(80, 90, 0, 0.5)

ngr-t/r-bindedEval documentation built on May 23, 2019, 4:43 p.m.