calc_conc: Calculates the molar concentration for a given compound's SI...

Description Usage Arguments Details Value Author(s) Examples

View source: R/calc_conc.R

Description

Calculates the molar concentration for a given compound's SI concentration.

Usage

1
calc_conc(conc = 1, MW, SIu, Mu)

Arguments

conc

numeric. Observed SI concentration of compound.

MW

numeric. Molecular weight of compound ( D (g/mol)).

SIu

character. SI Units of observed concentration: 'm/V'. Options restricted to:

  • m = g , mg, ug, ng, pg

  • V = L , mL, uL, nL, pL

Mu

character. Desired molar units of concentration: 'M', 'mM', 'uM', 'nM', 'pM'

Details

Utilises the formula

C = ( m / V )( 1 / MW ),

where C is concentration in desired molar units.

Tips:

Value

numeric. The molar concentration of the compound, with unit Mu.

Author(s)

Will Haese-Hill

Examples

1
2
3
4
5
6
7
Observed SI concentration of compound 1000 ug/L.
Compound has molecular weight 494.56 D (g/mol).
Desired units for molar concentration: nM.

new_conc <- calc_conc(conc = 1000, MW = 494.56, SIu = 'ug/L', Mu = 'nM')

new_conc = 2022, so 1000 ug/L of this particular compound is equal to ~2022 nM.

jgrevel/BAST1-R-Library documentation built on May 21, 2019, 10:11 a.m.