Learn R Programming

pharmr (version 1.4.0)

create_symbol: create_symbol

Description

Create a new unique variable symbol given a model

Usage

create_symbol(model, stem, force_numbering = FALSE)

Value

(Symbol) Created symbol with unique name

Arguments

model

(Model) Pharmpy model object

stem

(str) First part of the new variable name

force_numbering

(logical) Forces addition of number to name even if variable does not exist, e.g. COVEFF → COVEFF1

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
create_symbol(model, "TEMP")
create_symbol(model, "TEMP", force_numbering=TRUE)
create_symbol(model, "CL")
}

Run the code above in your browser using DataLab