Reads in a whitespace-delimited NONMEM output file (for example .grd or .ext
or a table output) or a NONMEM input data file. Will print the number of rows
and columns when the file is loaded. This printing can be suppressed by
setting options(bbr.verbose = FALSE).
Usage
nm_file(.mod, .suffix = NULL, ...)
nm_grd(.mod, .rename = TRUE)
nm_tab(.mod)
nm_par_tab(.mod)
nm_data(.mod, filter = FALSE)Arguments
- .mod
Either a
bbi_nonmem_model,bbi_nonmem_summary, or a path to a file to read in. If passing model object tonm_file(), must also pass.suffixthat will be passed through tobuild_path_from_model().- .suffix
Character vector to append the end of the absolute model path. Will be appended as is so, if passing a file extension, be sure to included the leading
".". See examples.- ...
arguments passed through to methods. (Currently none.)
- .rename
Logical (
T/F). IfTRUE, the default, will rename.grdcolumns to the relevant parameter names. Otherwise will leave column names as is.- filter
Logical (
T/F). IfTRUE, filter data based onIGNORE LISTorACCEPT LISToptions defined in the$DATArecord.
Details
nm_file() is called internally by the family of functions in this help doc,
as well as by nm_tables() and nm_join().
nm_file() assumes there is only one table per file and therefore
nm_file() (and family) are not compatible with files that have multiple
tables, for example an .ext file for a model with multiple estimation
methods or a table file from a model using $SIM. For these kinds of files,
consider using nm_file_multi_tab.
Functions
nm_grd(): Reads.grdfile from abbi_nonmem_modelorbbi_nonmem_summaryobjectnm_tab(): Reads{get_model_id(.mod)}.tabfile from abbi_nonmem_modelorbbi_nonmem_summaryobjectnm_par_tab(): Reads{get_model_id(.mod)}par.tabfile from abbi_nonmem_modelorbbi_nonmem_summaryobjectnm_data(): Reads the input data file from abbi_nonmem_modelorbbi_nonmem_summaryobject
