Description Usage Arguments Value
Apply function to every metabolite
1 | each_metabolite(mat, f, ...)
|
mat |
Matrix with samples as columns and metabolites as rows |
f |
Function to apply to metabolites |
... |
Further arguments passed to |
If f
returns a vector of length 1,
each_metabolite
returns a vector with one element per
metabolite. Otherwise if f
returns a vector of the same
length as its argument, each_metabolite
returns a matrix
with one row per metabolite, that is, the result will have the
same dimensions as mat
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.