Learn R Programming

Massign (version 1.1.0)

Multiplipe: Quickly test matrix multiplication of two matrices interpreted from strings.

Description

Building on Massign's core functionality, the Multiplipe operator ` allows for quick prototyping of matrix multiplications.

Usage

matrix1 %*>% matrix2

Arguments

matrix1

a matrix or Massign character matrix that premultiplies

matrix2

a matrix or Massign character matrix that postmultiplies

See Also

matrix, Massign

Examples

Run this code
# NOT RUN {
# Basic usage
"1, 2
 3, 4" %*>%
 " 0, 1
   1, 0"

# Second argument can be a matrix:
"1, 2, pi \\ 3, 4, 1 \\ 3, 2, 1" %*>% diag(c(1, 2, 3))

# Or the first, for that matter:
diag(c(1, 2, 3)) %*>% "1, 2, pi \\ 3, 4, 1 \\ 3, 2, 1"


# }

Run the code above in your browser using DataLab