Description Usage Arguments Value
Apply function to every sample
1 | each_sample(mat, f, ...)
|
mat |
Matrix with samples as columns and metabolites as rows |
f |
Function to apply to samples |
... |
Further arguments passed to |
If f
returns a vector of length 1,
each_sample
returns a vector with one element per
sample. Otherwise if f
returns a vector of the same
length as its argument, each_sample
returns a matrix
with one column per sample, 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.