composeModel | R Documentation |
Compose the function of the model and the functions representing its variables, condModel a list a function reprensenting each variables.
composeModel(model, condModel, param = list(), control = list())
model |
|
condModel |
|
Note that condModel
must correspond to a list of functions and not of function names. This is safer as these functions are usually not predefined, but generated using interpolateCond
.
Return a new function that only depend on time (represented as time
).
#Example of a call with two variables conditions <- data.frame(time = seq(0,30,length.out = 10), temp = rnorm(10, 10, 5)) condModel <- interpolateCond(conditions, method = "linear") model <- "modelLinear" param = list(a = 1, T0 = 10) g <- composeModel(model, condModel, param) x <- 1:20 g(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.