each_pathway: Apply function to every pathway

Description Usage Arguments Value

Description

Apply function to every pathway

Usage

1
each_pathway(mat, pathways, f, ...)

Arguments

mat

Matrix with samples as columns and metabolites as rows

pathways

Factor of length nrow(mat) used to split metabolites by pathway

f

Function to apply to pathway subsets of mat

...

Further arguments passed to f

Value

A list with one element per pathway. Elements are named using the corresponding level of pathways.


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