getFormula: Formula getter

View source: R/utils.R

getFormulaR Documentation

Formula getter

Description

Returns the formula associated with the specified model.

Usage

getFormula(model)

Arguments

model

the model name.

Value

the function corresponding to the formula of the model.

Examples

f <- getFormula("gompertz")
# We need to set the parameters (N0, ..., lambda)
f2 <- f(0.1, 2, 0.2, 5)
# And we can then use the function "f(x)" with x the time
f2(4)
## [1] 0.1150952

# The same, more direct
F <- getFormula("gompertz")(0.1, 2, 0.2, 5)
F(4)
## [1] 0.1150952

MicrobialGrowth documentation built on April 12, 2025, 1:34 a.m.