Package: matrixStats 1.4.1

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.4.1.tar.gz
matrixStats_1.4.1.zip(r-4.5)matrixStats_1.4.1.zip(r-4.4)matrixStats_1.4.1.zip(r-4.3)
matrixStats_1.4.1.tgz(r-4.4-x86_64)matrixStats_1.4.1.tgz(r-4.4-arm64)matrixStats_1.4.1.tgz(r-4.3-x86_64)matrixStats_1.4.1.tgz(r-4.3-arm64)
matrixStats_1.4.1.tar.gz(r-4.5-noble)matrixStats_1.4.1.tar.gz(r-4.4-noble)
matrixStats_1.4.1.tgz(r-4.4-emscripten)matrixStats_1.4.1.tgz(r-4.3-emscripten)
matrixStats.pdf |matrixStats.html
matrixStats/json (API)
NEWS

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

Peer review:

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

On CRAN:

matrixperformancevector

18.09 score 206 stars 2.2k packages 21k scripts 236k downloads 46 mentions 102 exports 0 dependencies

Last updated 3 months agofrom:860b985c23 (on master). Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 07 2024
R-4.5-win-x86_64NOTEDec 07 2024
R-4.5-linux-x86_64NOTEDec 07 2024
R-4.4-win-x86_64NOTEDec 07 2024
R-4.4-mac-x86_64NOTEDec 07 2024
R-4.4-mac-aarch64NOTEDec 07 2024
R-4.3-win-x86_64NOTEDec 07 2024
R-4.3-mac-x86_64NOTEDec 07 2024
R-4.3-mac-aarch64NOTEDec 07 2024

Exports:allocArrayallocMatrixallocVectorallValueanyMissinganyValuebinCountsbinMeanscolAllscolAnyMissingscolAnyNAscolAnyscolAvgsPerRowSetcolCollapsecolCountscolCummaxscolCumminscolCumprodscolCumsumscolDiffscolIQRDiffscolIQRscolLogSumExpscolMadDiffscolMadscolMaxscolMeans2colMedianscolMinscolOrderStatscolProdscolQuantilescolRangescolRankscolSdDiffscolSdscolSums2colTabulatescolVarDiffscolVarscolWeightedMadscolWeightedMeanscolWeightedMedianscolWeightedSdscolWeightedVarscountdiff2indexByRowiqriqrDifflogSumExpmadDiffmean2productrowAllsrowAnyMissingsrowAnyNAsrowAnysrowAvgsPerColSetrowCollapserowCountsrowCummaxsrowCumminsrowCumprodsrowCumsumsrowDiffsrowIQRDiffsrowIQRsrowLogSumExpsrowMadDiffsrowMadsrowMaxsrowMeans2rowMediansrowMinsrowOrderStatsrowProdsrowQuantilesrowRangesrowRanksrowSdDiffsrowSdsrowSums2rowTabulatesrowVarDiffsrowVarsrowWeightedMadsrowWeightedMeansrowWeightedMediansrowWeightedSdsrowWeightedVarssdDiffsignTabulatesum2t_tx_OP_yvarDiffweightedMadweightedMeanweightedMedianweightedSdweightedVarx_OP_y

Dependencies:

matrixStats: Summary of functions

Rendered frommatrixStats-methods.md.rspusingR.rsp::rspon Dec 07 2024.

Last update: 2019-09-07
Started: 2015-01-21

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