View source: R/getColumnQuantiles.R
getColumnQuantiles | R Documentation |
Calculate quantile for the columns in a matrix
getColumnQuantiles(X, prob, naRm = FALSE, onlyNonzeroVals = FALSE)
X |
the matrix |
prob |
a numeric probablity |
naRm |
a boolean, whether to remove NAs |
onlyNonzeroVals |
a boolean, whether to only include non-zero values |
a vector of quantiles
getColumnQuantiles(matrix(1:25, nrow=5), prob = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.