each_metabolite: Apply function to every metabolite

Description Usage Arguments Value

Description

Apply function to every metabolite

Usage

1

Arguments

mat

Matrix with samples as columns and metabolites as rows

f

Function to apply to metabolites

...

Further arguments passed to f

Value

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.


cbhelmholtz/metaboliteqc documentation built on May 13, 2019, 2:03 p.m.