built-ins: Built-in Group Apply Utility Functions

Description Usage Arguments

Description

These functions provide convenience shortcut for commonly performed group-apply operations, such as column/row group means, medians, maxs, mins, etc...

col<STAT>By computes for each column a given statistic within separate groups of rows, which are defined by a factor.

row<STAT>By computes for each row a given statistic within separate groups of columns, which are defined by a factor.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
colSumsBy(x, BY, ...)

rowSumsBy(x, BY, ...)

rowMeansBy(x, BY, ...)

colMeansBy(x, BY, ...)

rowMediansBy(x, BY, ...)

colMediansBy(x, BY, ...)

rowMaxsBy(x, BY, ...)

colMaxsBy(x, BY, ...)

rowMinsBy(x, BY, ...)

colMinsBy(x, BY, ...)

Arguments

x

matrix-like object on which apply can be called.

BY

factor or object coerced to a factor, that defines the groups within which the function FUN is applied.

If x is an ExpressionSet object, then BY can be the names of a sample (resp. feature) annotation variable if MARGIN=1 (resp. MARGIN=2L) (see examples).

...

extra parameters passed to FUN.


renozao/applyBy documentation built on May 27, 2019, 5:53 a.m.