matrixStats: Methods that apply to rows and columns of a matrix

This packages provides methods operating on rows and columns of matrices, e.g. col/rowMedians() and col/rowRanks(). There are also some vector-based methods, e.g. anyMissing(), weightedMedians(), and binMeans(). The objective is to have all methods being optimized for speed and memory usage.

AuthorHenrik Bengtsson [aut, cre, cph], Hector Corrada Bravo [ctb], Robert Gentleman [ctb], Ola Hossjer [ctb], Harris Jaffee [ctb], Peter Langfelder [ctb]
Bioconductor views Infrastructure Statistics
Date of publication2014-06-15 00:04:04
MaintainerHenrik Bengtsson <henrikb@braju.com>
LicenseArtistic-2.0
Version0.10.1

View on R-Forge

Man pages

anyMissing: Checks if there are any missing values in an object or not

binCounts: Fast element counting in non-overlapping bins

binMeans: Fast mean calculations in non-overlapping bins

indexByRow: Translates matrix indices by rows into indices by columns

logSumExp: Accurately computes the logarithm of the sum of exponentials

matrixStats-package: Package matrixStats

rowAvgsPerColSet.matrix: Applies a row-by-row (column-by-column) averaging function to...

rowCollapse: Extracts one cell per row (column) from a matrix

rowCounts: Counts the number of TRUE values in each row (column) of a...

rowDiffs: Calculates difference for each row (column) in a matrix

rowIQRs: Estimates of the interquartile range for each row (column) in...

rowLogSumExps: Accurately computes the logarithm of the sum of exponentials...

rowMedians: Calculates the median for each row (column) in a matrix

rowOrderStats: Gets an order statistic for each row (column) in a matrix

rowProds: Calculates the product for each row (column) in a matrix

rowQuantiles: Estimates quantiles for each row (column) in a matrix

rowRanges: Gets the range of values in each row (column) of a matrix

rowRanks: Gets the rank of each row (column) of a matrix

rowSds: Standard deviation estimates for each row (column) in a...

rowTabulates: Tabulates the values in a matrix by row (column)

rowVars: Variance estimates for each row (column) in a matrix

rowWeightedMeans.matrix: Calculates the weighted means for each row (column) in a...

rowWeightedMedians.matrix: Calculates the weighted medians for each row (column) in a...

signTabulate: Calculates the number of negative, zero, positive and missing...

varDiff: Estimation of discrepancies based on sequential order...

weightedMad: Weighted Median Absolute Deviation (MAD)

weightedMedian: Weighted Median Value

weightedVar: Weighted variance

Functions

anyMissing Man page
anyMissing,character-method Man page
anyMissing,complex-method Man page
anyMissing,data.frame-method Man page
anyMissing,list-method Man page
anyMissing,logical-method Man page
anyMissing,matrix-method Man page
anyMissing,NULL-method Man page
anyMissing,numeric-method Man page
anyMissing,raw-method Man page
binCounts Man page
binCounts.default Man page
binMeans Man page
binMeans.default Man page
colAlls Man page
colAlls.matrix Man page
colAnys Man page
colAnys.matrix Man page
colAvgsPerRowSet Man page
colAvgsPerRowSet.matrix Man page
colAvgsPerRowSet,matrix-method Man page
colCollapse Man page
colCollapse.matrix Man page
colCounts Man page
colCounts.matrix Man page
colDiffs Man page
colIQRs Man page
colLogSumExps Man page
colLogSumExps,matrix-method Man page
colMads Man page
colMaxs Man page
colMaxs,matrix-method Man page
colMedians Man page
colMedians,matrix-method Man page
colMins Man page
colMins,matrix-method Man page
colOrderStats Man page
colOrderStats,matrix-method Man page
colProds Man page
colQuantiles Man page
colRanges Man page
colRanges,matrix-method Man page
colRanks Man page
colRanks,matrix-method Man page
colSds Man page
colSds,matrix-method Man page
colTabulates Man page
colTabulates.matrix Man page
colVars Man page
colVars,matrix-method Man page
colWeightedMeans Man page
colWeightedMeans.matrix Man page
colWeightedMedians Man page
colWeightedMedians.matrix Man page
indexByRow Man page
indexByRow.matrix Man page
logSumExp Man page
madDiff Man page
madDiff.numeric Man page
matrix.colAvgsPerRowSet Man page
matrixStats Man page
matrixStats-package Man page
product Man page
rowAlls Man page
rowAlls.matrix Man page
rowAnys Man page
rowAnys.matrix Man page
rowAvgsPerColSet Man page
rowAvgsPerColSet.matrix Man page
rowCollapse Man page
rowCollapse.matrix Man page
rowCounts Man page
rowCounts.matrix Man page
rowDiffs Man page
rowIQRs Man page
rowLogSumExps Man page
rowLogSumExps,matrix-method Man page
rowMads Man page
rowMaxs Man page
rowMaxs,matrix-method Man page
rowMedians Man page
rowMedians,matrix-method Man page
rowMins Man page
rowMins,matrix-method Man page
rowOrderStats Man page
rowOrderStats,matrix-method Man page
rowProds Man page
rowQuantiles Man page
rowRanges Man page
rowRanges,matrix-method Man page
rowRanks Man page
rowRanks,matrix-method Man page
rowSds Man page
rowSds,matrix-method Man page
rowTabulates Man page
rowTabulates.matrix Man page
rowVars Man page
rowVars,matrix-method Man page
rowWeightedMeans Man page
rowWeightedMeans.matrix Man page
rowWeightedMedians Man page
rowWeightedMedians.matrix Man page
sdDiff Man page
sdDiff.numeric Man page
signTabulate Man page
varDiff Man page
varDiff.numeric Man page
weightedMad Man page
weightedMad.default Man page
weightedMedian Man page
weightedSd Man page
weightedSd.default Man page
weightedVar Man page
weightedVar.default Man page

Files

DESCRIPTION
NAMESPACE
NEWS
R
R/999.package.R R/anyMissing.R R/benchmark.R R/binCounts.R R/binMeans.R R/indexByRow.R R/logSumExp.R R/madDiff.R R/product.R R/psortKM.R R/rowAvgsPerColSet.R R/rowCollapse.R R/rowCounts.R R/rowDiffs.R R/rowIQRs.R R/rowLogSumExps.R R/rowMads.R R/rowMedians.R R/rowOrderStats.R R/rowProds.R R/rowQuantiles.R R/rowRanges.R R/rowRanks.R R/rowSds.R R/rowTabulates.R R/rowVars.R R/rowWeightedMeans.matrix.R R/rowWeightedMedians.matrix.R R/sdDiff.R R/signTabulate.R R/varDiff.R R/weightedMad.R R/weightedMedian.R R/weightedVar.R R/zzz.R
inst
inst/benchmarking
inst/benchmarking/R
inst/benchmarking/R/random-matrices.R inst/benchmarking/R/random-vectors.R
inst/benchmarking/binCounts.md.rsp
inst/benchmarking/binMeans.md.rsp
inst/benchmarking/colRowAnyMissings.md.rsp
inst/benchmarking/colRowCounts.md.rsp
inst/benchmarking/colRowLogSumExps.md.rsp
inst/benchmarking/colRowMads.md.rsp
inst/benchmarking/colRowMeans.md.rsp
inst/benchmarking/colRowMedians.md.rsp
inst/benchmarking/colRowMins.md.rsp
inst/benchmarking/colRowOrderStats.md.rsp
inst/benchmarking/colRowProds.md.rsp
inst/benchmarking/colRowQuantiles.md.rsp
inst/benchmarking/colRowRanges.md.rsp
inst/benchmarking/colRowRanks.md.rsp
inst/benchmarking/colRowSds.md.rsp
inst/benchmarking/colRowSums.md.rsp
inst/benchmarking/colRowTabulates.md.rsp
inst/benchmarking/colRowWeightedMeans.md.rsp
inst/benchmarking/colRowWeightedMedians.md.rsp
inst/benchmarking/includes
inst/benchmarking/includes/appendix.md.rsp
inst/benchmarking/includes/footer.md.rsp
inst/benchmarking/includes/header.md.rsp
inst/benchmarking/includes/references.md.rsp
inst/benchmarking/includes/results.md.rsp
inst/benchmarking/includes/setup.md.rsp
inst/benchmarking/index.md.rsp
inst/benchmarking/product.md.rsp
inst/benchmarking/weightedMedian.md.rsp
man
man/anyMissing.Rd man/binCounts.Rd man/binMeans.Rd man/indexByRow.Rd man/logSumExp.Rd man/matrixStats-package.Rd man/rowAvgsPerColSet.matrix.Rd man/rowCollapse.Rd man/rowCounts.Rd man/rowDiffs.Rd man/rowIQRs.Rd man/rowLogSumExps.Rd man/rowMedians.Rd man/rowOrderStats.Rd man/rowProds.Rd man/rowQuantiles.Rd man/rowRanges.Rd man/rowRanks.Rd man/rowSds.Rd man/rowTabulates.Rd man/rowVars.Rd man/rowWeightedMeans.matrix.Rd man/rowWeightedMedians.matrix.Rd man/signTabulate.Rd man/varDiff.Rd man/weightedMad.Rd man/weightedMedian.Rd man/weightedVar.Rd
src
src/anyMissing.c
src/binCounts-BINBY-template.h
src/binCounts.c
src/binMeans-BINBY-template.h
src/binMeans.c
src/logSumExp.c
src/productExpSumLog.c
src/productExpSumLog_TYPE-template.h
src/psortKM.c
src/rowCounts.c
src/rowCounts_TYPE-template.h
src/rowMedians.c
src/rowMedians_TYPE-template.h
src/rowOrderStats.c
src/rowOrderStats_TYPE-template.h
src/rowRanks.c
src/rowRanks_Integer.c
src/rowRanks_Real.c
src/rowRanks_TYPE_TIES-template.h
src/rowRanks_TYPE_TIES.c
src/signTabulate.c
src/signTabulate_TYPE-template.h
src/templates-types.h
src/templates-types_undef.h
tests
tests/anyMissing.R tests/binCounts.R tests/binMeans,binCounts.R tests/logSumExp.R tests/product.R tests/psortKM.R tests/rowCounts.R tests/rowLogSumExps.R tests/rowMads.R tests/rowMedians.R tests/rowOrderStats.R tests/rowProds.R tests/rowQuantiles.R tests/rowRanges.R tests/rowRanks,ties.R tests/rowRanks.R tests/rowSds.R tests/rowTabulates.R tests/rowVars.R tests/rowWeightedMeans.R tests/rowWeightedMedians.R tests/sdDiff.R tests/signTabulate.R

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.