Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

assign-delayed

Create an delayed binding.


Description

Infix form of delayedAssign which creates an delayed or lazy binding, which only evaluates the expression the first time it is used.

Usage

x %<d-% value

Arguments

x

unquoted expression naming variable to create

value

unquoted expression to evaluate the first time name is accessed

Examples

x %<d-% (a + b)
a <- 10
b <- 100
x

pryr

Tools for Computing on the Language

v0.1.4
GPL-2
Authors
Hadley Wickham [aut, cre], R Core team [ctb] (Some code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.