Modify dose data such that it conforms for future use.
conformDoses(
doseData,
idVar = "id",
dateVar = "date.dose",
infusionDoseTimeVar = NULL,
infusionDoseVar = NULL,
bolusDoseTimeVar = NULL,
bolusDoseVar = NULL,
otherDoseTimeVar = NULL,
otherDoseVar = NULL,
otherVars = NULL
)
data.frame; data set with dose information
character string; name of ID variable, defaults to id
character string; name of date variable, defaults to date.dose
character string; name of infusion dose time variable
character string; name of infusion dose variable
character string; name of bolus dose time variable
character string; name of bolus dose variable
character string; name of additional dose time variable
character string; name of additional dose variable
character string; name of other variables within data set
data.frame, containing dose data
Date-time variables are given a consistent format. Invalid records are removed. The data set is sorted by date.