[Stable]

rename_parameter(m, ...)

Arguments

m

An nm object.

...

Named arguments with character values indicated old names.

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 %>% rename_parameter(V2 = "V")

m1 %>% dollar("PK")
#> $`execute.Models/m1`
#>   1| $PK
#>   2| 
#>   3| TVKA=EXP(THETA(1))
#>   4| MU_1=LOG(TVKA)
#>   5| KA = EXP(MU_1+ETA(1))
#>   6| 
#>   7| TVK=EXP(THETA(2))
#>   8| MU_2=LOG(TVK)
#>   9| K = EXP(MU_2+ETA(2))
#>  10| 
#>  11| TVV2=EXP(THETA(3))
#>  12| MU_3=LOG(TVV2)
#>  13| V2 = EXP(MU_3+ETA(3))
#>  14| 
#>  15| CL = K*V2
#>  16| 
#>  17| S2 = V2
#>  18| 
#> 
m1 %>% dollar("THETA")
#> $`execute.Models/m1`
#>   1| $THETA
#>   2| .....          	; KA ; h-1 ; LOG
#>   3| .....          	; K  ; h-1 ; LOG
#>   4| .....          	; V2  ; L ; LOG
#>   5| 
#>