matrixStats v0.54.0

0

Monthly downloads

0th

Percentile

Functions that Apply to Rows and Columns of Matrices (and to Vectors)

High-performing functions operating on rows and columns of matrices, e.g. col / rowMedians(), col / rowRanks(), and col / rowSds(). Functions optimized per data type and for subsetted calculations such that both memory usage and processing time is minimized. There are also optimized vector-based methods, e.g. binMeans(), madDiff() and weightedMedian().

Functions in matrixStats

Name Description
logSumExp Accurately computes the logarithm of the sum of exponentials
diff2 Fast lagged differences
rowRanges Gets the range of values in each row (column) of a matrix
rowRanks Gets the rank of each row (column) of a matrix
binCounts Fast element counting in non-overlapping bins
indexByRow Translates matrix indices by rows into indices by columns
rowDiffs Calculates difference for each row (column) in a matrix
binMeans Fast mean calculations in non-overlapping bins
rowMedians Calculates the median for each row (column) in a matrix
rowIQRs Estimates of the interquartile range for each row (column) in a matrix
rowOrderStats Gets an order statistic for each row (column) in a matrix
product Calculates the product for each row (column) in a matrix
allocMatrix Allocates an empty vector, matrix or array
validateIndices Validate indices
anyMissing Checks if there are any missing values in an object or not
rowQuantiles Estimates quantiles for each row (column) in a matrix
mean2 Fast averaging over subset of vector elements
varDiff Estimation of scale based on sequential-order differences
rowCounts Counts the number of occurrences of a specific value
weightedMedian Weighted Median Value
rowCumsums Cumulative sums, products, minima and maxima for each row (column) in a matrix
rowMads Standard deviation estimates for each row (column) in a matrix
weightedVar Weighted variance and weighted standard deviation
rowAlls Checks if a value exists / does not exist in each row (column) of a matrix
rowLogSumExps Accurately computes the logarithm of the sum of exponentials across rows or columns
rowMeans2 Calculates the mean for each row (column) in a matrix
rowAvgsPerColSet Applies a row-by-row (column-by-column) averaging function to equally-sized subsets of matrix columns (rows)
rowSums2 Calculates the sum for each row (column) in a matrix
rowCollapse Extracts one cell per row (column) from a matrix
signTabulate Calculates the number of negative, zero, positive and missing values
rowWeightedMeans Calculates the weighted means for each row (column) in a matrix
rowWeightedMedians Calculates the weighted medians for each row (column) in a matrix
rowTabulates Tabulates the values in a matrix by row (column)
sum2 Fast sum over subset of vector elements
rowVars Variance estimates for each row (column) in a matrix
x_OP_y Fast calculation of 'z <- x OP y' and 'z <- t(t(x) OP y)'
weightedMad Weighted Median Absolute Deviation (MAD)
weightedMean Weighted Arithmetic Mean
matrixStats-package Package matrixStats
No Results!

Vignettes of matrixStats

Name
matrixStats-methods.md.rsp
No Results!

Last month downloads

Details

VignetteBuilder R.rsp
Date 2018-07-23
License Artistic-2.0
LazyLoad TRUE
NeedsCompilation yes
ByteCompile TRUE
URL https://github.com/HenrikBengtsson/matrixStats
BugReports https://github.com/HenrikBengtsson/matrixStats/issues
RoxygenNote 6.0.1
Packaged 2018-07-23 15:25:55 UTC; hb
Repository CRAN
Date/Publication 2018-07-23 20:40:03 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/matrixStats)](http://www.rdocumentation.org/packages/matrixStats)