Description Usage Arguments Value Author(s) See Also Examples
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
1 | nmDatabyVarType(obj, varTypes, returnMode=c("singleDF", "DFList"), ...)
|
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 |
A data.frame, or list, with the data
Mango Solutions
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.