View source: R/Shiny_Growth_Calculations.R
double_times | R Documentation |
Calculate doubling time in exponential phase
double_times(df, time, measure, c1, c2)
df |
A dataframe |
time |
The column holding numerical or datetime values for the independent (usually time) variable. Quotation marks necessary |
measure |
The column holding numerical values for the dependent (e.g. OD) variable, not log-transformed. Quotation marks necessary. |
c1, c2 |
Cutoffs for the time column that bound the exponential phase of the data. |
A doubling time produced by fitting a linear model between the log2-transformed measure column and the time column and taking the reciprocal of the slope from that model.
df<-data.frame(x= c(1:10), y = 2^c(1:10))
doublr::double_times(df, time = "x", measure = "y", c1 = 1, c2 = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.