View source: R/read_nm_files.R
read_nm_files | R Documentation |
Quickly import NONMEM output files into R.
read_nm_files(
runno = NULL,
prefix = "run",
ext = c(".ext", ".cor", ".cov", ".phi", ".grd", ".shk"),
file = NULL,
dir = NULL,
quiet = FALSE
)
runno |
Run number to be evaluated. |
prefix |
Prefix of the model file names. |
ext |
A vector of the file extension to import. By default '.ext', '.cor', '.cov', '.phi', '.grd', '.shk' files are listed. |
file |
Names of the model output file to be imported. Alternative argument to |
dir |
Location of the model files. |
quiet |
Logical, if |
The rules for model file names generation are as follow:
with runno
: the full path is generated as
<dir>/<prefix><runno>.<ext>
e.g. with dir = 'model/pk'
,
prefix = 'run'
, runno = '001'
, ext = '.lst'
the
resulting path would be model/pk/run001.lst
with file
:
the full path is generated as <dir>/<file>
e.g. with dir =
'model/pk'
, file = 'run001.lst'
the resulting path would also be
model/pk/run001.lst
. Note: in this case the file extension should be
provided as part of the 'file' argument.
xpose_data
, read_nm_tables
## Not run:
# Using the `file` argument to import a model file:
ext_file <- read_nm_files(file = 'run001.ext', dir = 'models')
# Using the `runno` argument to import a model file:
ext_file <- read_nm_files(runno = '001', ext = '.ext', dir = 'models')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.