readDatamlx: Read formatted data file

View source: R/readdatamlx.R

readDatamlxR Documentation

Read formatted data file

Description

Read data in a Monolix/NONMEM format

Usage

readDatamlx(
  project = NULL,
  data = NULL,
  out.data = FALSE,
  nbSSDoses = 10,
  obs.rows = FALSE,
  error.iov = FALSE,
  filter = NULL,
  datafile = NULL,
  header = NULL,
  infoProject = NULL,
  addl.ss = NULL
)

Arguments

project

a Monolix project

data

a list with fields

  • dataFile: path of a formatted data file

  • headerTypes: a vector of strings

out.data

TRUE/FALSE (default=FALSE) returns the original data as a table and some information about the Monolix project

nbSSDoses

number of additional doses to use for steady-state (default=10)

obs.rows

a list of observation indexes

error.iov

TRUE/FALSE (default=TRUE) returns an error message if occasions are overlapping

filter

filter to apply to the data (string)

datafile

(deprecated) a formatted data file

header

(deprecated) a vector of strings

infoProject

(deprecated) an xmlfile

addl.ss

(deprecated) number of additional doses to use for steady-state (default=10)

Details

See https://simulx.lixoft.com/mlxr-documentation/ for more details.

Value

A list of data frames

Examples

## Not run: 
# using a Monolix project:
d <- readDatamlx(project='projects/warfarinPK.mlxtran')


# using a data file:
warfarinPK <- list(dataFile = "data/warfarinPK.csv",
                   headerTypes = c("id", "time", "observation", "amount", 
                                   "contcov", "contcov", "catcov"),
                   administration = "oral")
d <- readDatamlx(data=warfarinPK)


## End(Not run)

MarcLavielle/mlxR documentation built on May 28, 2023, 4:25 p.m.