View source: R/param-manipulate.R
remove_parameter | R Documentation |
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.
remove_parameter(m, name)
m |
An nm object. |
name |
Character. Parameter name to remove. |
An nm object with modified ctl_contents
field.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.