%.*=% {refer}R Documentation

Matrix Multiplication In Place

Description

Change the value of an object on the search path through matrix multiplication. Similar to '*=' in other languages, except with matrix multiplication. See incr for details on implementation.

Usage

x %.*=% value

Arguments

x

object to be modified; can be a symbol, character, or extraction language object.

value

value with which to change x by

Value

the new value of x, invisibly

Examples

x <- 1:5
x %*=% 6:10
identical(x, 130)  # TRUE

[Package refer version 0.1.0 Index]