Learn R Programming

inplace (version 0.1.2)

inplace-op: In-place operators

Description

In-place operators

Usage

x %*<-% value

x %+<-% value

x %-<-% value

x %/<-% value

Arguments

x

Variable.

value

Value.

Value

NULL (invisibly).

Examples

Run this code
# NOT RUN {
mat <- matrix(1:4, 2)
mat
mat %+<-% 2
mat
# }

Run the code above in your browser using DataLab