Learn R Programming

mlxR (version 3.3.0)

readDatamlx: Read formatted data file

Description

Read data in a Monolix/NONMEM format

Usage

readDatamlx(project = NULL, datafile = NULL, header = NULL,
  infoProject = NULL, out.data = FALSE, addl.ss = 10)

Arguments

project

a Monolix project

datafile

a formatted data file

header

a vector of strings (mandatory if datafile is used)

infoProject

an xmlfile

out.data

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

addl.ss

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 {
d <- readDatamlx(project='monolixRuns/warfarin_project.mlxtran')
names(d)
head(d$treatment)
head(d$covariate)
head(d$y1)

#-- reserved key-words for the header:
#   ID,TIME,AMT,ADM,RATE,TINF,Y,YTYPE,X,COV,CAT,OCC,MDV,EVID,ADDL,SS,II,IGNORE
d <- readDatamlx(datafile='monolixRuns/warfarin_data.txt', 
                 header=c('id','time','amt','y','ytype','cov','cov','cat'))
# }

Run the code above in your browser using DataLab