View source: R/basic-ctl-manipulation.R
dollar | R Documentation |
The fast way to see the contents of a particular subroutine directly in the R console. It can also be used to set the contents of a NONMEM subroutine in place of manual edits
dollar(m, dollar, ..., add_dollar_text = TRUE)
m |
An nm object. |
dollar |
Character. Name of NONMEM subroutine to target. |
... |
Additional arguments to be passed to |
add_dollar_text |
Logical (default = |
If dollar
is specified returns the relevant subroutine of the
control file as a character. Otherwise returns an nm object with modified
ctl_contents
field.
insert_dollar()
, delete_dollar()
# 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 %>% dollar("PK") ## displays existing $PK m1 %>% dollar("THETA") c(m1, m1) %>% dollar("THETA") # display $THETAs for multiple NONMEM runs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.