Skip to contents

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

Usage

colIQMs(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 IQM

Value

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

Details

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

Author

Alessandro Barberis

Examples

x = c(1,2,3,4,5)
x = cbind(x,x)
colnames(x) = c("S1", "S2")
colIQMs(x = x)#3 3
#> S1 S2 
#>  3  3