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(
  data = NULL,
  out.data = FALSE,
  nbSSDoses = 10,
  obs.rows = FALSE,
  datafile = NULL,
  header = NULL
)

Arguments

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

datafile

(deprecated) a formatted data file

header

(deprecated) a vector of strings

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/Rsmlx documentation built on March 1, 2024, 2:01 a.m.