Modify dose data to remove duplicate dose values.
fixDuplicates(
data,
idVar = "id",
infusionDoseTimeVar = NULL,
infusionDoseVar = NULL,
moveBolus = FALSE,
bolusDoseTimeVar = NULL,
bolusDoseVar = NULL
)
data.frame; data set with dose information
character string; name of ID variable, defaults to id
character string; name of infusion dose time variable
character string; name of infusion dose variable
logical; allow duplicate infusion doses to be categorized as bolus
character string; name of bolus dose time variable
character string; name of bolus dose variable
data.frame, containing dose data
Some duplicates can be adjusted by changing the date-time rounding. Others may be converted from one dose type to another, such as moving infusion to bolus.