%^=% {refer} | R Documentation |
Change the value of an object on the search path through exponentiation Equivalent to '^='
in other languages.
See incr
for details on implementation.
x %^=% value
x |
object to be modified; can be a symbol, character, or extraction language object. |
value |
value with which to change |
the new value of x
, invisibly
x <- 10
x %^=% 2
identical(x, 100) # TRUE