Learn R Programming

pharmr (version 1.0.1)

cleanup_model: cleanup_model

Description

Perform various cleanups of a model

This is what is currently done

  • Make model statements declarative, i.e. only one assignment per symbol

  • Inline all assignments of one symbol, e.g. X = Y

Usage

cleanup_model(model)

Value

(Model) Reference to the same model

Arguments

model

(Model) Pharmpy model object

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
model$statements
model <- cleanup_model(model)
model$statements
}

Run the code above in your browser using DataLab