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

Description Usage Arguments Details Value Missing values Author(s) See Also

Description

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

Usage

1
2

Arguments

x

A numeric NxK matrix.

which

An integer index in [1,K] ([1,N]) indicating which order statistic to be returned.

...

Not used.

Details

The implementation of rowOrderStats() is optimized for both speed and memory. To avoid coercing to doubles (and hence memory allocation), there is a unique implementation for integer matrices. Currently, colOrderStats(x) is calling rowOrderStats(t(x)).

Value

Returns a numeric vector of length N (K).

Missing values

This method does not handle missing values, that is, the result corresponds to having na.rm=FALSE (if such an argument would be available).

Author(s)

The native implementation of rowOrderStats() was adopted by Henrik Bengtsson from Robert Gentleman's rowQ() in the Biobase package.

See Also

See rowMeans() in colSums().


matrixStats documentation built on May 2, 2019, 4:52 p.m.