Learn R Programming

matrixStats (version 0.1.5)

matrixStats-package: Package matrixStats

Description

This packages provides methods operating on rows and columns of matrices. The methods are optimized for speed and memory. This package is currently in a beta phase. Make sure to read the 'Roadmap' section in the package help.. Please consider this package to be in a beta phase.

Arguments

Installation

To install this package, please do: install.packages("matrixStats", repos="http://www.rforge.net/")

Dependancies and other requirements

See DESCRIPTION file for now.

Roadmap

The plan is to publish this package on CRAN when the API is settled/stable. Currently, we are in a stage of adding new methods to the package. It is currently not decided whether the methods should be S4 or S3 methods. What is sure is that we will use either dispatching mechanisms. This is the reason why some methods are based on S4 and some on S3. The ones using S3 rely on the R.methodsS3 package to define the methods. There are also dependancies on other packages. The plan is to remove all such dependancies as soon as the API settles, but until then, we keep the dependancies for conveniency and in order to avoid reduncancy of available implementations of identical methods.

To get started

Counts and logicals:
  • rowCounts()
  • rowAlls()
  • rowAnys()
Sums and products:
  • rowSums()
  • rowProds()
Estimates of the mean:
  • rowMeans()
  • rowMedians()
  • rowWeightedMeans()
  • rowWeightedMedians()
Estimates of the standard deviation, variance and more:
  • rowSds()
  • rowMads()
  • rowVars()
  • rowIQRs()
  • rowQuantiles()
  • rowOrderStats()
  • rowRanges()
  • rowMins()
  • rowMaxs()
Miscellaneous:
  • rowDiffs()
  • anyMissing()

How to cite this package

Henrik Bengtsson (partly by Robert Gentleman) (2009). matrixStats: Methods that apply to rows and columns of a matrix. R package version 0.1.5.