Package: matrixStats 1.3.0-9004

Henrik Bengtsson

matrixStats: 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().

Authors:Henrik Bengtsson [aut, cre, cph], Constantin Ahlmann-Eltze [ctb], Hector Corrada Bravo [ctb], Robert Gentleman [ctb], Jan Gleixner [ctb], Peter Hickey [ctb], Ola Hossjer [ctb], Harris Jaffee [ctb], Dongcan Jiang [ctb], Peter Langfelder [ctb], Brian Montgomery [ctb], Angelina Panagopoulou [ctb], Hugh Parsonage [ctb], Jakob Peder Pettersen [ctb]

matrixStats_1.3.0-9004.tar.gz
matrixStats_1.3.0-9004.zip(r-4.5)matrixStats_1.3.0-9004.zip(r-4.4)matrixStats_1.3.0-9004.zip(r-4.3)
matrixStats_1.3.0-9004.tgz(r-4.4-arm64)matrixStats_1.3.0-9004.tgz(r-4.4-x86_64)matrixStats_1.3.0-9004.tgz(r-4.3-arm64)matrixStats_1.3.0-9004.tgz(r-4.3-x86_64)
matrixStats_1.3.0-9004.tar.gz(r-4.5-noble)matrixStats_1.3.0-9004.tar.gz(r-4.4-noble)
matrixStats_1.3.0-9004.tgz(r-4.4-emscripten)matrixStats_1.3.0-9004.tgz(r-4.3-emscripten)
matrixStats.pdf |matrixStats.html
matrixStats/json (API)
NEWS

# Install 'matrixStats' in R:
install.packages('matrixStats', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/henrikbengtsson/matrixstats/issues

On CRAN:

matrixperformancevector

102 exports 201 stars 14.75 score 0 dependencies 2133 dependents 46 mentions 166.0k downloads

Last updated 1 months agofrom:4e024d3ea5

Exports:allocArrayallocMatrixallocVectorallValueanyMissinganyValuebinCountsbinMeanscolAllscolAnyMissingscolAnyNAscolAnyscolAvgsPerRowSetcolCollapsecolCountscolCummaxscolCumminscolCumprodscolCumsumscolDiffscolIQRDiffscolIQRscolLogSumExpscolMadDiffscolMadscolMaxscolMeans2colMedianscolMinscolOrderStatscolProdscolQuantilescolRangescolRankscolSdDiffscolSdscolSums2colTabulatescolVarDiffscolVarscolWeightedMadscolWeightedMeanscolWeightedMedianscolWeightedSdscolWeightedVarscountdiff2indexByRowiqriqrDifflogSumExpmadDiffmean2productrowAllsrowAnyMissingsrowAnyNAsrowAnysrowAvgsPerColSetrowCollapserowCountsrowCummaxsrowCumminsrowCumprodsrowCumsumsrowDiffsrowIQRDiffsrowIQRsrowLogSumExpsrowMadDiffsrowMadsrowMaxsrowMeans2rowMediansrowMinsrowOrderStatsrowProdsrowQuantilesrowRangesrowRanksrowSdDiffsrowSdsrowSums2rowTabulatesrowVarDiffsrowVarsrowWeightedMadsrowWeightedMeansrowWeightedMediansrowWeightedSdsrowWeightedVarssdDiffsignTabulatesum2t_tx_OP_yvarDiffweightedMadweightedMeanweightedMedianweightedSdweightedVarx_OP_y

Dependencies:

matrixStats: Summary of functions

Rendered frommatrixStats-methods.md.rspusingR.rsp::rspon Jul 22 2024.

Last update: 2019-07-21
Started: 2014-12-20

Readme and manuals

Help Manual

Help pageTopics
Package matrixStatsmatrixStats-package matrixStats
Checks if there are any missing values in an object or notanyMissing colAnyMissings colAnyNAs rowAnyMissings rowAnyNAs
Fast element counting in non-overlapping binsbinCounts
Fast mean calculations in non-overlapping binsbinMeans
Translates matrix indices by rows into indices by columnsindexByRow
Accurately computes the logarithm of the sum of exponentialslogSumExp
Calculates the product for each row (column) in a matrixcolProds product rowProds
Checks if a value exists / does not exist in each row (column) of a matrixallValue anyValue colAlls colAnys rowAlls rowAnys
Extracts one cell per row (column) from a matrixcolCollapse rowCollapse
Counts the number of occurrences of a specific valuecolCounts count rowCounts
Cumulative sums, products, minima and maxima for each row (column) in a matrixcolCummaxs colCummins colCumprods colCumsums rowCummaxs rowCummins rowCumprods rowCumsums
Calculates difference for each row (column) in a matrixcolDiffs rowDiffs
Estimates of the interquartile range for each row (column) in a matrixcolIQRs iqr rowIQRs
Accurately computes the logarithm of the sum of exponentials across rows or columnscolLogSumExps rowLogSumExps
Standard deviation estimates for each row (column) in a matrixcolMads colSds rowMads rowSds
Calculates the mean for each row (column) in a matrixcolMeans2 rowMeans2
Calculates the median for each row (column) in a matrixcolMedians rowMedians
Gets an order statistic for each row (column) in a matrixcolOrderStats rowOrderStats
Estimates quantiles for each row (column) in a matrixcolQuantiles rowQuantiles
Gets the range of values in each row (column) of a matrixcolMaxs colMins colRanges rowMaxs rowMins rowRanges
Gets the rank of the elements in each row (column) of a matrixcolRanks rowRanks
Calculates the sum for each row (column) in a matrixcolSums2 rowSums2
Tabulates the values in a matrix by row (column).colTabulates rowTabulates
Variance estimates for each row (column) in a matrixcolVars rowVars
Calculates the weighted means for each row (column) in a matrixcolWeightedMeans rowWeightedMeans
Calculates the weighted medians for each row (column) in a matrixcolWeightedMedians rowWeightedMedians
Estimation of scale based on sequential-order differencescolIQRDiffs colMadDiffs colSdDiffs colVarDiffs iqrDiff madDiff rowIQRDiffs rowMadDiffs rowSdDiffs rowVarDiffs sdDiff varDiff
Weighted Median Absolute Deviation (MAD)colWeightedMads rowWeightedMads weightedMad
Weighted Arithmetic MeanweightedMean
Weighted Median ValueweightedMedian
Weighted variance and weighted standard deviationcolWeightedSds colWeightedVars rowWeightedSds rowWeightedVars weightedSd weightedVar