powered by
Multiplies two matricies. A wrapper around `matmalt()` (i.e. ` `data.frame`s
mm(x, y, return_matrix)"%mm%"(x, y, return_matrix)
"%mm%"(x, y, return_matrix)
A numeric matrix or vector
Defaults to returning a data.frame (FALSE). Set to TRUE to return a matrix
The matrix product as a data.frame or matrix
# NOT RUN { 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 # }
Run the code above in your browser using DataLab