Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

time_to_logcount

Time to reach a given microbial count


Description

Returns the storage time required for the microbial count to reach log_count according to the predictions of model. Calculations are done using linear interpolation of the model predictions.

Usage

time_to_logcount(model, log_count)

Arguments

model

An instance of IsothermalGrowth or DynamicGrowth.

log_count

The target log microbial count.

Value

The predicted time to reach log_count.

Examples

## First of all, we will get an IsothermalGrowth object

my_model <- "modGompertz"
my_pars <- list(logN0 = 2, C = 6, mu = .2, lambda = 25)
my_time <- seq(0, 100, length = 1000)

static_prediction <- predict_isothermal_growth(my_model, my_time, my_pars)
plot(static_prediction)

## And now we calculate the time to reach a microbial count

time_to_logcount(static_prediction, 2.5)

## If log_count is outside the range of the predicted values, NA is returned

time_to_logcount(static_prediction, 20)

biogrowth

Modelling of Population Growth

v0.2.0
GPL-3
Authors
Alberto Garre [aut, cre] (<https://orcid.org/0000-0002-4404-3550>), Jeroen Koomen [aut], Heidy den Besten [aut], Marcel Zwietering [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.