Skip to contents

This function computes the *interquartile range* for each column vector in the input matrix x. See the **Details** section below for further information.

Usage

colIQRs(x, rows = NULL, na.rm = T, ...)

Arguments

x

a numerical matrix features-by-samples

rows

(optional) numerical vector giving the rows in x or character vector matching the row names in x to operate over. If missing or rows = NULL, all the rows in x are considered for the computation of the measures

na.rm

logical, whether to remove NA values from x before computation

...

further arguments to iqr

Value

A numerical vector containing the computed score for each column in x.

Details

This function applies iqr to each column of the input matrix.

Author

Alessandro Barberis

Examples

x = c(7,7,31,31,47,75,87,115,116,119,119,155,177,NA)
x = cbind(x,x)
colnames(x) = c("S1", "S2")
colIQRs(x = x)#88 88
#> S1 S2 
#> 88 88