Fast R functions for summaries over rows and columns of matrices
open sourceArtistic-2.0free
matrixStats is an R package of highly optimized functions for computing common summaries over the rows and columns of matrices, such as colMedians() and rowQuantiles(), plus functions on vectors such as logSumExp(). Most calculations are implemented in C to save memory and time, and they're often many times faster than equivalent apply() code. It installs on Linux, macOS and Windows.
Problems it solves
- compute column medians of a large matrix quickly in R
- replace slow apply() calls over matrix rows in R
- calculate row quantiles of a numeric matrix in R
Features
- row and column summaries of matrices: medians, quantiles and more
- vector functions such as logSumExp()
- implemented mostly in C for speed and low memory use
- installs out of the box on Linux, macOS and Windows
