remove_parameter: Remove parameter from NONMEM control file

View source: R/param-manipulate.R

remove_parameterR Documentation

Remove parameter from NONMEM control file

Description

[Stable]

Attempts to remove a parameter from the NONMEM control assuming it has been written according to NMproject conventions (i.e. TVPARAM notation and TVPARAM + IIV_PARAM comments in $THETA/$OMEGA). The presence of any code that depends on the removed parameter will cause the control file to break.

Usage

remove_parameter(m, name)

Arguments

m

An nm object.

name

Character. Parameter name to remove.

Value

An nm object with modified ctl_contents field.

Examples


# create example object m1 from package demo files
exdir <- system.file("extdata", "examples", "theopp", package = "NMproject")
m1 <- new_nm(run_id = "m1", 
             based_on = file.path(exdir, "Models", "ADVAN2.mod"),
             data_path = file.path(exdir, "SourceData", "THEOPP.csv"))
             
m1 <- m1 %>% remove_parameter("KA")

nm_diff(m1)


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.