get.multiple.xpose.tables: Get xpose tables of multiple runs

View source: R/get.multiple.xpose.tables.r

get.multiple.xpose.tablesR Documentation

Get xpose tables of multiple runs

Description

Imports output tables of multiple runs and merges them into one data.frame

Usage

get.multiple.xpose.tables(
  runs,
  path = getOption("nmDir"),
  carryAlong = c("DV", "DOSE", "TIME", "EVID")
)

Arguments

runs

character vector of run roon names (e.g. run1)

path

directory where run directories of runs reside

carryAlong

character vector of variables to get in addition to ID, PRED, IPRED, CWRES, DV. Argument carryAlong defaults to DOSE TIME and EVID. Use in case output tables are not consistent across runs being imported

Value

data.fame the xpose tables for runs and an additional column 'model' containinng the rootnames of runs for stratification in post-processing

Note

use argument 'carryAlong' to ask for more data items to be included in the result

See Also

get.xpose.tables

Examples

library(lattice)
 test = get.multiple.xpose.tables(runs = c("example1","example2")
 , path = getOption("qpExampleDir"), carryAlong = c("CONC","TIME","EVID"))
names(test)
head(subset(test,model == "example1"))
head(subset(test,model == "example2"))
xyplot(CWRES ~ value | variable * model
       , data = reshape2::melt(test, measure.vars = c('TIME','PRED'))
       , panel = panel.cwres
       , scales = list(x = list(relation = "free"))
)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.