lctran | R Documentation |
Previous data set requirements included lower case names for data items
like AMT
and EVID
. Lower case is no longer required. However, it is still
a requirement that nmtran like data column names are either all lower case
or all upper case.
lctran(data, ...)
## S3 method for class 'data.frame'
lctran(data, warn = TRUE, ...)
## S3 method for class 'ev'
lctran(data, ...)
uctran(data, ...)
## S3 method for class 'data.frame'
uctran(data, warn = TRUE, ...)
## S3 method for class 'ev'
uctran(data, ...)
data |
a data set with nmtran-like format or an event object. |
... |
for potential future use. |
warn |
if |
Columns that will be renamed with lower or upper case versions:
AMT / amt
II / ii
SS / ss
CMT / cmt
ADDL / addl
RATE / rate
EVID / evid
TIME / time
If both lower and upper case versions of the name are present in the data frame, no changes will be made.
A data frame or event object, with column names possibly converted to upper or lower case.
data <- data.frame(TIME = 0, AMT = 5, II = 24, addl = 2, WT = 80)
lctran(data)
data <- data.frame(TIME = 0, AMT = 5, II = 24, addl = 2, wt = 80)
uctran(data)
ev <- evd(amt = 100, evid = 3)
uctran(ev)
# warning
data <- data.frame(TIME = 1, time = 2, CMT = 5)
lctran(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.