Learn R Programming

⚠️There's a newer version (1.5.0) of this package.Take me there.

matrixStats (version 0.12.2)

Methods that Apply to Rows and Columns of a Matrix

Description

Methods operating on rows and columns of matrices, e.g. col/rowMedians(), col/rowRanks() and col/rowSds(). There are also some vector-based methods, e.g. binMeans(), madDiff() and weightedMedians(). All methods have been optimized for speed and memory usage.

Copy Link

Version

Install

install.packages('matrixStats')

Monthly Downloads

241,359

Version

0.12.2

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

December 7th, 2014

Functions in matrixStats (0.12.2)

rowCounts

Counts the number of TRUE values in each row (column) of a matrix
binMeans

Fast mean calculations in non-overlapping bins
varDiff

Estimation of discrepancies based on sequential order differences in a vector
weightedMad

Weighted Median Absolute Deviation (MAD)
rowWeightedMedians.matrix

Calculates the weighted medians for each row (column) in a matrix
allocMatrix

Allocates an empty vector, matrix or array
rowCollapse

Extracts one cell per row (column) from a matrix
rowCumsums

Cumulative sums, products, minima and maxima for each row (column) in a matrix
meanOver

Fast averaging over subset of vector elements
rowRanks

Gets the rank of each row (column) of a matrix
rowRanges

Gets the range of values in each row (column) of a matrix
rowIQRs

Estimates of the interquartile range for each row (column) in a matrix
rowLogSumExps

Accurately computes the logarithm of the sum of exponentials across rows or columns
indexByRow

Translates matrix indices by rows into indices by columns
rowSds

Standard deviation estimates for each row (column) in a matrix
rowOrderStats

Gets an order statistic for each row (column) in a matrix
binCounts

Fast element counting in non-overlapping bins
rowVars

Variance estimates for each row (column) in a matrix
anyMissing

Checks if there are any missing values in an object or not
rowDiffs

Calculates difference for each row (column) in a matrix
rowAvgsPerColSet.matrix

Applies a row-by-row (column-by-column) averaging function to equally-sized subsets of matrix columns (rows)
weightedMedian

Weighted Median Value
sumOver

Fast sum over subset of vector elements
weightedVar

Weighted variance
signTabulate

Calculates the number of negative, zero, positive and missing values
rowWeightedMeans.matrix

Calculates the weighted means for each row (column) in a matrix
matrixStats-package

Package matrixStats
xUNDERSCOREOPUNDERSCOREy

Fast calculation of 'z <- x OP y' and 'z <- t(t(x) OP y)'
rowQuantiles

Estimates quantiles for each row (column) in a matrix
rowTabulates

Tabulates the values in a matrix by row (column)
rowProds

Calculates the product for each row (column) in a matrix
rowMedians

Calculates the median for each row (column) in a matrix
logSumExp

Accurately computes the logarithm of the sum of exponentials