PERCENT< -PERCENT
From R.utils v2.0.0
by Henrik Bengtsson
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.
The RHS expression will be evaluted in a local
().
- Keywords
- internal
Usage
x %<-% value
Arguments
- x
- The variable name (possibly quoted).
- value
- The value to be assigned to
x
.
Value
See Also
Internally delayedAssign
() is used.
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
Community examples
Looks like there are no examples yet.