read nonmem files easily

read_nonmem(path, header = TRUE, sep = "auto", example_name = NULL)

Arguments

path

path to file

header

whether header with column names exists

sep

automatically detected by default, however can tell by default.

example_name

name of column to detect which rows contain header(s)

Details

This function is designed specifically for handling nonmem's nonstandard output format, and is especially useful for simulation tables output with NSUB as it will appropriately parse out the additional TABLE and column name rows.

HOWEVER, for tables with standard formatting (eg comma separated with FORMAT=,1PE11.4) and no NSUB, then the `read_phx()` function will likely be slightly faster. This should only be an issue for large (at least 20 MB) files, else the difference will be imperceptible.