mm {mmr} | R Documentation |
Matrix Multiplication
Description
Multiplies two matricies. A wrapper around 'matmalt()' (i.e. ' 'data.frame's
Multiplies two matricies. A wrapper around 'matmalt()' (i.e. ' 'data.frame's
Usage
mm(x, y, return_matrix)
"%mm%"(x, y, return_matrix)
Arguments
x |
A numeric matrix or vector |
y |
A numeric matrix or vector |
return_matrix |
Defaults to returning a data.frame (FALSE). Set to TRUE to return a matrix |
Value
The matrix product as a data.frame or matrix
The matrix product as a data.frame or matrix
Examples
x <- data.frame(a=c(1,2,3), b=c(5,6,7))
y <- c(2,2)
mm(x, y)
x <- data.frame(a=c(1,2,3), b=c(5,6,7))
y <- c(2,2)
x %mm% y
[Package mmr version 0.1.0 Index]