rowQuantiles {matrixStats} | R Documentation |
Estimates quantiles for each row (column) in a matrix.
rowQuantiles(x, probs=seq(from=0, to=1, by=0.25), ..., drop=TRUE) colQuantiles(x, ...)
x |
A numeric NxK matrix . |
probs |
A numeric vector of J probabilities in [0,1]. |
... |
Additional arguments passed to quantile . |
drop |
If TRUE, singleton dimensions in the result are dropped, otherwise not. |
Returns a numeric
NxJ (JxK) matrix
.
Henrik Bengtsson (http://www.braju.com/R/)