double_times: Calculate doubling time in exponential phase

View source: R/Shiny_Growth_Calculations.R

double_timesR Documentation

Calculate doubling time in exponential phase

Description

Calculate doubling time in exponential phase

Usage

double_times(df, time, measure, c1, c2)

Arguments

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.

Value

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.

Examples

df<-data.frame(x= c(1:10), y = 2^c(1:10))
doublr::double_times(df, time = "x", measure = "y", c1 = 1, c2 = 8)

gus-pendleton/doublr documentation built on Jan. 4, 2024, 11:09 a.m.