View source: R/get.multiple.xpose.tables.r
get.multiple.xpose.tables | R Documentation |
Imports output tables of multiple runs and merges them into one data.frame
get.multiple.xpose.tables(
runs,
path = getOption("nmDir"),
carryAlong = c("DV", "DOSE", "TIME", "EVID")
)
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 |
data.fame the xpose tables for runs and an additional column 'model' containinng the rootnames of runs for stratification in post-processing
use argument 'carryAlong' to ask for more data items to be included in the result
get.xpose.tables
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"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.