NMcheckDataFile: check input data based on control stream

View source: R/NMcheckDataFile.R

NMcheckDataFileR Documentation

check input data based on control stream

Description

Finds input data and checks compatibility with Nonmem control stream and runs NMcheckData. Don't call this function directly - use the file argument in NMcheckData instead.

Usage

NMcheckDataFile(
  file,
  col.row,
  col.id = "ID",
  formats.read = "csv",
  quiet = FALSE,
  file.mod,
  dir.data,
  as.fun,
  use.rds,
  ...
)

Arguments

file

a model file (input or output control stream)

col.row

row identifier

col.id

subject identifier

formats.read

Prioritized input data file formats to look for and use if found. Default is c("csv") which means rds and fst will _not_ be used. Typically only the csv file is wanted because we want to test the input data as read by Nonmem.

quiet

Keep quiet? Default is FALSE.

file.mod

How to find the input control stream if you are using the output control stream.

dir.data

The data directory can only be read from the control stream (.mod) and not from the output file (.lst). So if you only have the output control stream, use dir.data to tell in which directory to find the data file. If dir.data is provided, the .mod file is not used at all.

as.fun

The function to run results through before returning them.

use.rds

Deprecated. Use formats.read instead.

...

passed to NMcheckData

Value

A list of diagnostics


NMdata documentation built on Nov. 11, 2023, 5:07 p.m.