Description Usage Arguments Details Value
Convert a NONMEMdata object to a data frame
1 2 3 | ## S3 method for class 'NONMEMdata'
as.data.frame(x, ..., stringsAsFactors = FALSE,
verbose = FALSE)
|
x |
The object to convert to a data.frame |
..., stringsAsFactors |
Ignored (kept as arguments for compatibility with the generic as.data.frame method) |
verbose |
Describe modifications made in detail (as messages). |
The data.frame will be sorted by ID, TIME (NA first then ordered by number), EVID (decreasing), CMT, then the group columns. Columns will be converted to numeric with the following rules:
numericNo conversion
logicalas.numeric (0 or 1)
characterNo conversion, except for the ID column. The ID column will be converted to a factor if it is not already numeric.
factoras.numeric on the factor with a new name for the factor column. If the factor column is mapped to a NONMEM column (often used for ID), then the numeric column will be named with the NONMEM mapping. If the factor column is not named, the numbered column will have "_numeric" appended to the original column name, the factor will be converted to a character column
any other classCoerce to character with as.character
Column order will be ID, TIME, EVID, EXCLUDENUM, other numeric columns (after conversion), character columns (after conversion).
A data.frame (or similar object) as described in the details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.