Learn R Programming

mlxR (version 4.2.0)

readDatamlx: 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)

Value

A list of data frames

Details

See http://simulx.webpopix.org/mlxr/readdatamlx/ for more details.

Examples

Run this code
# 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)

# }

Run the code above in your browser using DataLab