priority_mean: Extracts mean concentrations from HMDB results using a...

Description Usage Arguments Value See Also Examples

Description

This is useful if one prefers concentrations from one biofluid, but will also except other biofluids if no reported measurements can be found for the primary one. priority_mean will return the mean of the first biofluid for which measuremnts can be found.

Usage

1
priority_mean(d, biospecimen = c("cellular Cytoplasm", "blood"))

Arguments

d

A data frame as returned by hmdb_concentration

biospecimen

Vector of valid biospecimen to be checked in the order they appear.

Value

The mean

See Also

hmdb_concentration to parse the concentrations used in this function.

Examples

1
2
3
# requires internet connection
concs <- hmdb_concentration('HMDB0000124')
priority_mean(concs) # has measurements for cytoplasm so returns those

cdiener/dycone documentation built on May 13, 2019, 2:41 p.m.