PERCENT< -PERCENT

0th

Percentile

Assignment operator for delayed assignments

Assignment operator for delayed assignments such that the expression on the right-hand side (RHS) will not be evaluated until the value of the assigned variable (on left-hand side (LHS)) is evaluated.

Keywords
internal
Usage
x %<-% value
Arguments
x
The variable name (possibly quoted).
value
The value to be assigned to x.
Value

  • Returns (invisibly) NULL. Note, contrary to <-(), it is not meaniful to do a %<-% b %<-% c %<-% 6.

See Also

Internally delayedAssign() is used.

Aliases
  • PERCENT< -PERCENT
  • %<-%
Examples
message("a %<-% ...")
a %<-% { message("Now assigning 'a'"); 1 }
message("b %<-% a")
b %<-% a
message("c %<-% b")
c %<-% b
message("d %<-% 2*c")
d <- 2*c
Documentation reproduced from package R.utils, version 1.32.4, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.