Learn R Programming

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

matrixStats (version 0.10.3)

Methods that apply to rows and columns of a matrix

Description

This packages provides methods operating on rows and columns of matrices, e.g. col/rowMedians() and col/rowRanks(). There are also some vector-based methods, e.g. anyMissing(), weightedMedians(), and binMeans(). The objective is to have all methods being optimized for speed and memory usage.

Copy Link

Version

Install

install.packages('matrixStats')

Monthly Downloads

387,307

Version

0.10.3

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

October 15th, 2014

Functions in matrixStats (0.10.3)

rowDiffs

Calculates difference for each row (column) in a matrix
rowLogSumExps

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

Weighted Median Value
anyMissing

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

Translates matrix indices by rows into indices by columns
rowOrderStats

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

Fast mean calculations in non-overlapping bins
rowTabulates

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

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

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

Calculates the weighted means for each row (column) in a matrix
rowProds

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

Calculates the number of negative, zero, positive and missing values
binCounts

Fast element counting in non-overlapping bins
rowQuantiles

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

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

Weighted Median Absolute Deviation (MAD)
rowMedians

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

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

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

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

Accurately computes the logarithm of the sum of exponentials
rowVars

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

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

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

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

Weighted variance
matrixStats-package

Package matrixStats