checkWCE {WCE} | R Documentation |
Verify that the arguments passed to the WCE function are in correct format
Description
This function checks whether the arguments passed to the WCE function are in the correct format. If at least one argument is incorrectly specified, the function returns an error message specifying what needs to be fixed.
Usage
checkWCE(data, id, event, start, stop, expos)
Arguments
data |
A data frame in the long (interval) format with one line per unit of time. |
id |
The name of the variable in |
event |
The name of the variable in |
start |
The name of the variable in |
stop |
The name of the variable in |
expos |
The name of the variable in |
Details
The arguments passed to checkWCE
must be exactly those passed to WCE
.
Value
checkWCE
returns a message on the screen indicating whether the arguments are correctly specified or not.
Examples
checkWCE(drugdata, id = "Id", event = "Event", start = "Start", stop = "Stop", expos = "dose")