In-place operators
x %*<-% value x %+<-% value x %-<-% value x %/<-% value
x
Variable.
value
Value.
NULL (invisibly).
NULL
mat <- matrix(1:4, 2) mat mat %+<-% 2 mat