pmx_read_nm_files: NONMEM output file import function

Description Usage Arguments Examples

View source: R/pmx_read_nm_files.R

Description

Quickly import NONMEM output files into R.

Usage

1
2
3
4
5
6
7
8
pmx_read_nm_files(
  runno = NULL,
  prefix = "run",
  ext = c(".ext", ".cor", ".cov", ".phi", ".grd", ".shk"),
  file = NULL,
  dir = NULL,
  quiet = FALSE
)

Arguments

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 prefix, runno and ext.

dir

Location of the model files.

quiet

Logical, if FALSE messages are printed to the console.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Using the `file` argument to import a model file:
ext_file <- pmx_read_nm_files(file = 'run001.ext', dir = 'models')

# Using the `runno` argument to import a model file:
ext_file <- pmx_read_nm_files(runno = '001', ext = '.ext', dir = 'models')

## End(Not run)

ggPMX documentation built on Sept. 20, 2021, 5:09 p.m.