Description Usage Arguments Details Value Author(s) See Also Examples
For each category, apply the function FUN
to the set of values
of stats
belonging to that category.
1 | applyByCategory(stats, Amat, FUN = mean, ...)
|
stats |
Numeric vector with test statistics of interest. |
Amat |
A logical or numeric matrix: the adjacency matrix of the
bipartite genes - category graph.
Its rows correspond to the categories, columns
to the genes, and |
FUN |
A function to apply to the subsets |
... |
Extra parameters passed to |
For GO categories, the function cateGOry
might be useful
for the construction of Amat
.
The return value is a list or vector of length equal to
the number of categories. Each element corresponds to the
values obtained by applying FUN
to the subset of values
in stats
according to the category defined for that
row.
R. Gentleman, contributions from W. Huber
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.