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


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("matrixStats")

1.5.0 by Henrik Bengtsson, 2 years ago


https://github.com/HenrikBengtsson/matrixStats


Report a bug at https://github.com/HenrikBengtsson/matrixStats/issues


Browse source code at https://github.com/cran/matrixStats


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]


Documentation:   PDF Manual  


Artistic-2.0 license


Suggests utils, base64enc, ggplot2, knitr, markdown, microbenchmark, R.devices, R.rsp


Imported by ACNE, AGHmatrix, ALDEx3, ActivityIndex, BREADR, BSW, BayesBrainMap, BayesfMRI, BayesianPlatformDesignTimeTrend, CARBayesST, CDF, CIPerm, CNVScope, Canek, CimpleG, ClustAssess, CpGFilter, CureDepCens, DAMOCLES, DCLEAR, DHS.rates, DMtest, DSWE, DepCens, ExceedanceTools, FADA, FateID, FracFixR, GAD, GJRM, GLMMadaptive, GPGame, GTEs, GUniFrac, GenEst, GeoThinneR, GulFM, HACSim, HDSpatialScan, HaploDiploidEquilibrium, Hmsc, HonestDiD, ICBioMark, IMIFA, ImpactEffectsize, Infusion, JMbayes2, JointFPM, LDM, LFDREmpiricalBayes, LOCOM2, LS2Wstat, LikertMakeR, LongitudinalEvalue, Luminescence, MEDseq, MetabolicSurv, MicrobiomeStat, MoEClust, MosaiClusteR, MuTATE, NeEDS4BigData, OncoBayes2, OpenSpecy, OptimalDesign, Ostats, PINSPlus, PSCBS, PSIM, PlackettLuce, Pv3Rs, RAC, RBesT, RCarb, RChASM, RGCCA, RMCDA, RNAseqQC, RSTr, RSquaredMI, RTCC, RaceID, RandomForestsGLS, Reacnorm, Rmfrac, Rogue, SANvi, SCoRES, SGP, SQI, SQIpro, Seurat, SingleCellStat, SpatMix, SuperCell, TCA, TaxaNorm, TestNet, ThurMod, TopDom, UBayFS, UPG, Unico, VICatMix, WGCNA, WQM, WaverideR, WeMix, ZIHINAR1, aRD, abcrf, ablasso, adproclus, apollo, aroma.affymetrix, aroma.cn, aroma.core, bartMachine, bayesDiagnostics, bcf, bdsvd, bigstep, binsreg, blackbox, blox, bmm, bnclassify, brms, bspcov, cSEM, calmate, causalOT, ccar3, cellGeometry, cellWise, cmahalanobis, cna, cnaOpt, cobin, coconots, cohetsurr, coin, cointReg, cointmonitoR, colocboost, colorrepel, conformalbayes, conquer, cophescan, cosinor2, countts, cpam, ctgimme, cvCovEst, dagHMM, ddtlcm, decompr, disbayes, dplR, dwp, eGST, eaf, ecospat, ernest, eseis, exdqlm, expss, fMRItools, fairsubset, familial, felp, fipp, fkbma, flexmsm, flocker, footBayes, geocmeans, ggdmc, graphicalMCP, haldensify, harf, hbamr, hrf, hubEnsembles, icio, icpack, inDAGO, incidental, iperform, irace, iraceplot, jmv, jointseg, kgschart, l1rotation, latrend, ldsep, lfproQC, locaR, loo, lspartition, ltmle, maicplus, matrixTests, mbg, mbsts, mclink, mgcViz, miRecSurv, miclust, midasINLA, miesmuschel, migest, moocore, mooplot, mr.mashr, mrfDepth, mult.latent.reg, multinomialLogitMix, mvnma, mvpd, mzipmed, nbconv, nestedcv, neuralGAM, neurobase, nparMD, obfuscatoR, occupancy, omicsTools, omicwas, pARI, pecora, penppml, pgKDEsphere, posterior, priorsense, rADA, randomGLM, randomizationInference, recommenderlab, reservr, rhierbaps, riemtan, robustlm, rpm, rsvddpd, rtrend, rvec, samr, sanba, scDHA, scISR, scPloidy, scpoisson, sctransform, sensobol, simPop, sizeMat, slasso, spaMM, spdesign, staRdom, stabiliser, stability, stagedtrees, stapler, statar, stm, stoppingrule, sts, summarytools, surveyPrev, susieR, templateICAr, tepr, walking, weakARMA, winputall, yaap.

Depended on by BRISC, BayesTwin, CopulaGAMM, FastPCS, FastRCS, InfiniumPurify, ODT, OptHoldoutSize, POMaSPU, Qest, Rediscover, SPARRAfairness, aSPU, bahc, localgauss, sindyr, ttScreening.

Suggested by AgePopDenom, COINr, ChemoSpec2D, EstimationTools, GPUmatrix, LSAmitR, MSclassifR, MultiBD, RHRT, SigBridgeRUtils, cifti, delarr, detrendr, dynamicSDM, fastcpd, gap, genpca, glossa, grandR, limorhyde, multivarious, mvgam, nandb, numbat, redist, regsem, rtemis, sigminer, sumup.

Enhanced by jamba, robustbase.


See at CRAN