rowOrderStats(x, rows=NULL, cols=NULL, which, dim.=dim(x), ...)
colOrderStats(x, rows=NULL, cols=NULL, which, dim.=dim(x), ...)
integer
index in [1,K] ([1,N]) indicating which
order statistic to be returned.numeric
vector
of length N (K).na.rm=FALSE
(if such an argument would
be available).rowOrderStats()
is optimized for both
speed and memory.
To avoid coercing to double
s (and hence memory allocation), there
is a unique implementation for integer
matrices.rowMeans()
in colSums
().