nmDatabyVarType: Get NONMEM data by variable type

Description Usage Arguments Value Author(s) See Also Examples

View source: R/nmDatabyVarType.R

Description

Retrieves data stored in a NONMEM object by category of data type, e.g. covariates, "etas", etc. The type mappings are defined in the configuration data, and may be changed with get/setNmVarDescription

Usage

1
nmDatabyVarType(obj, varTypes, returnMode=c("singleDF", "DFList"), ...)

Arguments

obj

Object of class NMRun or NMProblem

varTypes

Character vector of types to return. Allowed types are currently "Parameter", "Lab covariate", "Covariate" and "Eta"

returnMode

A string, either "singleDF" or "DFList". If "singleDF", all of the data is returned in a consolidated data.frame, otherwise as a list returned by type

...

Additional parameters: problemNum to select the problem if obj is of class NMRun, subProblemNum to select a set of subproblems for simulation problems

Value

A data.frame, or list, with the data

Author(s)

Mango Solutions

See Also

nmData, getVarDescription

Examples

1
2
3
4
5
6
## Not run: 
x <- importNm("TestData1.ctl", "TestData1.lst", path  = "testing/testdata/TestRun"))
x.covariates <- nmDatabyVarType(x, varTypes = "Covariate")
print(head(x.covariates))

## End(Not run)

RNMImport documentation built on May 21, 2017, 1:15 a.m.

Search within the RNMImport package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.