Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

mmr

mmr provides simple helpers for matrix multiplication on data.frames. These allow for more concise code during low level mathematical operations, and help ensure code is more easily read, understood, and serviced.

# install.packages("mmr")
library(mmr)

Matrix Multiplication on data.frames

mm() accepts two data.frame’s and returns their matrix product:

x <- data.frame(a=c(1,2,3), b=c(5,6,7))
y <- c(2,2)
mm(x, y)
##   V1
## 1 12
## 2 16
## 3 20

%mm% offers the same functionality in infix form:

x <- data.frame(a=c(1,2,3), b=c(5,6,7))
y <- c(2,2)
x %mm% y
##   V1
## 1 12
## 2 16
## 3 20

About

Matrix multiplication for the ubiquitous data.frame

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.