View source: R/twofold_dilution.R
get_TTDs | R Documentation |
The function uses linear interpolation to identify the time at which different wells reached a target optical density
get_TTDs(OD_data, target_OD, codified = FALSE)
OD_data |
a tibble (or data.frame) with the readings of the equipment. It
must have a column named |
target_OD |
target OD for the calculation of the TTD |
codified |
whether the columns are codified. If |
A tibble with two or three columns. If codified = FALSE
, the tibble has two columns:
condition
(the name of the well according to OD_data
) and TTD
(the estimated time to detection).
If the target_OD
was not reached for some well, it assigns NA
. If codified = TRUE
,
the code returns an additional column with the number of dilutions
data("example_od") # example dataset included int he package
get_TTDs(example_od, target_OD = 0.2) # default behaviour, returns two columns
get_TTDs(example_od, target_OD = 0.2, codified = TRUE) # extracts also the number of dilutions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.