convert_absorbance: convert_absorbance

Description Usage Arguments Examples

View source: R/convert_absorbance.R

Description

given a tibble containing a column 'Absorbance', the concentration of a chemical of which the Absorbance is measured is calculated and attached to the tibble. Userprovided coefficients return the calculated concentration in corresponding units - If the coefficient is one of the chemicals provided in 'chemical_specs.R' the calculated concentration is stated in mol/l .

Usage

1

Arguments

data

a tibble with at least one column 'Absorbance'.

coef

either the name of any chemical found in 'chemicals_specs' or a user-provided appropriate absorption coefficient (a named vector, eg. 'setNames(7282, "chemical1")')

Examples

1
2
3
4
5
6
7
8
# this is a typical output from jasco_tibble
jasco_df

jasco_df %>%
  convert_absorbance(., "NADH")
  
jasco_df %>%
  convert_absorbance(., coef = setNames(7282, "chemical XYZ"))

mirkko-hub/jasco2 documentation built on Jan. 1, 2021, 2:53 p.m.