Skip to content

matrixStats

1.5.0Package record

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

298packages dependsuggested by 29
7.8Mdownloads / year
86.1%test coverage
13/13flavors OK

Overview

About

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

Changes in 1.5.0

Significant Changes

  • Package now requires R (>= 3.4.0) [2017-04-21], because the next release of R will have stricter C header requirements that are not backward compatible with older versions of R.

Deprecated and Defunct

  • The hidden R options for deescalating the error for using useNames = NA to a warning has been removed; useNames = NA is now always an error.
  • Calling colRanks() and rowRanks() without explicitly specifying argument ties.method is deprecated since version 1.3.0 [2024-04-10]. If not explicitly specified, a deprecation warning is now produced every 10:th call not specifying the ties.method argument.
Show all changes in 1.5.0Hide the rest of the changes in 1.5.0

Bug Fixes

  • The error message of colTabulates() and rowTabulates() asserting that double values are passed, reported on the class of the input data, not the storage type.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-30
  • ERROR13 OK, 1 ERROR2026-03-29
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.5.0
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.5.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
39 (8 internal)includes a package overview page
Examples that run
96%23 run in a plain check · 1 never run
Exported functions with examples
62%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
10%

Downloads

7.8M
CRAN downloads in the past year
Rank #86 · ~21.2K/day · ~645.9K/mo
Daily download trend is not available in this view yet.
608.3K30 days
2.2M90 days
7.8M1 year
Compare downloads with other packages →
Also on104.8K r2u138 autocran664.8K conda_forge27.8K bioconda3.1K c2d4u

Repository

216Stars
37Forks
54Open issues
3Open PRs
0Releases
1,941Commits
16Commit identities
rpackagematrixvectorperformancecran
1,941 commits · Last activity 2026-09-07 · +0.9% stars, 30d · Default branch at 1.5.0-9000, ahead of CRAN 1.5.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
74%
Median days to close, 50 most recently updated closed issues
20
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-02 · 2122026-10-15 · 216
PracticesBeta

9 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/henrikbengtsson/matrixstats on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductContributing guide
Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
Makefile
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing matrixStats adds no packages beyond those that come with R.

Depends (1)
R >= 3.4.0
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none

People & History

People (14)
Author, Maintainer since 0.1.5 (2009), Copyright holder
Contributor · added in 0.57.0
Contributor · added in 0.4.0
Contributor · added in 0.3.0
Contributor · added in 0.58.0
Contributor · added in 0.53.1
Contributor · added in 0.8.0
Contributor · added in 0.3.0
Contributor · added in 0.14.1
Show 5 more contributorsHide 5 contributors
Contributor · added in 0.8.0
Contributor · added in 0.55.0
Contributor · added in 0.60.0
Contributor · added in 0.58.0
Contributor · added in 0.60.1
Releases (59)

Pick two releases to compare their code metrics.

Show 64 earlier eventsHide 64 earlier events
  • 0.60.0
    record
    2021-07-26 · diff ↗
  • 0.59.0
    record
    2021-06-01 · diff ↗ ·
    removed 2 exports
    meanOver, sumOver
  • R
    R 4.1.0 released · 2021-05-18
  • 0.58.0
    record
    2021-01-30 · diff ↗
  • 0.57.0
    record
    2020-09-26 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.56.0
    record
    2020-03-13 · diff ↗
  • 0.55.0
    record
    2019-09-07 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.54.0
    record
    2018-07-23 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.53.1
    record
    2018-02-11 · diff ↗
  • 0.53.0
    record
    2018-01-24 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.52.2
    record
    2017-04-14 · diff ↗
  • 0.52.1
    record
    2017-04-05 · diff ↗
  • 0.52.0
    record
    2017-04-04 · diff ↗ ·
    added 8 exports
    colAnyNAs, colMeans2, colSums2, mean2, rowAnyNAs, rowMeans2, rowSums2, sum2
  • 0.51.0
    record
    2016-10-09 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 0.50.2
    record
    2016-04-24 · diff ↗
  • 0.50.1
    record
    2015-12-15 · diff ↗
  • 0.50.0
    record
    2015-12-13 · diff ↗ ·
    added 1 export
    validateIndices
  • 0.15.0
    record
    2015-10-27 · diff ↗
  • 0.14.2
    record
    2015-06-24 · diff ↗
  • 0.14.1
    record
    2015-06-20 · diff ↗ ·
    removed 1 export
    pattern:^[^\\.]
    added 96 exports
    allocVector, allocMatrix, allocArray, allValue, anyMissing, anyValue, binCounts, binMeans, colAlls, colAnys, colAnyMissings, colAvgsPerRowSet, colCollapse, colCounts, colCummins, colCummaxs, colCumprods, colCumsums, colDiffs, colIQRs, colIQRDiffs, colLogSumExps, colMadDiffs, colMads, colMaxs, colMedians, colMins, colOrderStats, colProds, colQuantiles and 66 more
  • R
    R 3.2.0 released · 2015-04-16
  • 0.14.0
    record
    2015-02-14 · diff ↗
  • 0.13.1
    record
    2015-01-22 · diff ↗
  • 0.13.0
    record
    2015-01-21 · diff ↗ ·
    added 23 exports
    allValue, anyValue, colAnyMissings, colIQRDiffs, colMadDiffs, colSdDiffs, colVarDiffs, colWeightedMads, colWeightedSds, colWeightedVars, count, diff2, iqr, iqrDiff, rowAnyMissings, rowIQRDiffs, rowMadDiffs, rowSdDiffs, rowVarDiffs, rowWeightedMads, rowWeightedSds, rowWeightedVars, weightedMean
  • 0.12.2
    record
    2014-12-07 · diff ↗
  • 0.12.0
    record
    2014-12-07 · diff ↗ ·
    added 15 exports
    allocVector, allocMatrix, allocArray, colCummins, colCummaxs, colCumprods, colCumsums, meanOver, rowCummins, rowCummaxs, rowCumprods, rowCumsums, sumOver, x_OP_y, t_tx_OP_y
  • 0.10.3
    record
    2014-10-15 · diff ↗
  • 0.10.0
    record
    2014-06-08 · diff ↗
  • 0.9.7
    record
    2014-06-06 · diff ↗ ·
    removed 1 export
    pattern:^[^\\.]
    added 58 exports
    anyMissing, binCounts, binMeans, colAlls, colAnys, colAvgsPerRowSet, colCollapse, colCounts, colDiffs, colIQRs, colLogSumExps, colMads, colMaxs, colMedians, colMins, colOrderStats, colProds, colQuantiles, colRanges, colRanks, colSds, colTabulates, colVars, colWeightedMeans, colWeightedMedians, indexByRow, logSumExp, madDiff, product, rowAlls and 28 more
  • 0.8.15
    record
    2014-06-05 · diff ↗ ·
    removed 96 exports
    allocVector, allocMatrix, allocArray, allValue, anyMissing, anyValue, binCounts, binMeans, colAlls, colAnys, colAnyMissings, colAvgsPerRowSet, colCollapse, colCounts, colCummins, colCummaxs, colCumprods, colCumsums, colDiffs, colIQRs, colIQRDiffs, colLogSumExps, colMadDiffs, colMads, colMaxs, colMedians, colMins, colOrderStats, colProds, colQuantiles and 66 more
    added 1 export
    pattern:^[^\\.]
  • R
    R 3.1.0 released · 2014-04-10
  • 0.8.14
    record
    2014-01-05 · diff ↗
  • 0.8.12
    record
    2013-09-27 · diff ↗
  • 0.8.10
    record
    2013-09-16 · diff ↗
  • 0.8.5
    record
    2013-07-15 · diff ↗
  • 0.8.1
    record
    2013-05-02 · diff ↗
  • 0.8.0
    record
    2013-05-02 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 0.6.2
    record
    2012-11-16 · diff ↗
  • 0.5.3
    record
    2012-09-13 · diff ↗
  • 0.5.2
    record
    2012-07-03 · diff ↗
  • 0.5.0
    record
    2012-05-06 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.4.4
    record
    2012-03-06 · diff ↗
  • 0.4.3
    record
    2011-12-13 · diff ↗
  • 0.4.0
    record
    2011-11-12 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 0.3.0
    record
    2011-10-14 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 0.2.2
    record
    2010-10-12 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 0.2.1
    record
    2010-04-05 · diff ↗
  • 0.1.9
    record
    2010-02-04 · diff ↗
  • 0.1.8
    record
    2009-11-13 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • 0.1.6
    record
    2009-06-18 · diff ↗
  • 0.1.5
    record
    2009-06-14
  • R
    R 2.9.0 released · 2009-04-17

Package metadata

First published
2009-06-14
Total releases
59 / 17 yrs
License
Artistic-2.0 OSI
Minimum R
≥ 3.4.0
Download size
207 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("matrixStats")
Bengtsson, H., Ahlmann-Eltze, C., Corrada Bravo, H., Gentleman, R., Gleixner, J., Hickey, P., Hossjer, O., Jaffee, H., Jiang, D., Langfelder, P., Montgomery, B., Panagopoulou, A., Parsonage, H., & Pettersen, J. P. (2025). matrixStats: Functions that Apply to Rows and Columns of Matrices (and to Vectors) (Version 1.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.matrixStats

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for matrixStats version 1.5.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy