View source: R/functions_wrapper.R
set_initial_condition | R Documentation |
Set an initial condition for the ode system
If the initial condition is already set it will be updated. If the initial condition is set to zero at time zero it will be removed (since the default is 0).
set_initial_condition(model, compartment, expression, time = 0)
model |
(Model) Pharmpy model |
compartment |
(str) Name of the compartment |
expression |
(numeric or str or Expr) The expression of the initial condition |
time |
(numeric or str or Expr) Time point. Default 0 |
(model) Pharmpy model object
## Not run:
model <- load_example_model("pheno")
model <- set_initial_condition(model, "CENTRAL", 10)
get_initial_conditions(model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.