Description Usage Arguments Examples
View source: R/fecalHormoneCalc.R
fecalHormoneCalc takes a joined table with extract and assay data and caclualtes final hormone concentration in ng/g
This is a clunky function that will only work with unaltered hormone tables
The steroid hormone concentration calculation is done following De Palma (???):
((pg/well) x ExtractVolume(uL) x Dilution Factor) / (FecalWeight(g) x SampleVolume(uL) x 1000)
1 | fecalHormoneCalc(.data)
|
.data |
a dataframe that contains both extract and hormone data |
1 2 3 4 5 6 7 8 | ## Not run:
con = fecalConnect(RMySQL::MySQL(), group = "krspfecals-aws")
extracts = tbl(con, "extracts")
cort = tbl(con, "cort")
joined = left_join(extracts, cort)
joined$cort_ng_g = fecalHormoneCalc(joined, "cort")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.