fixDuplicates: Remove Duplicate Dose Data

Description Usage Arguments Details Value Author(s)

View source: R/fixDuplicates.R

Description

Modify dose data to remove duplicate dose values.

Usage

1
2
3
4
5
6
7
8
9
fixDuplicates(
  data,
  idVar = "id",
  infusionDoseTimeVar = NULL,
  infusionDoseVar = NULL,
  moveBolus = FALSE,
  bolusDoseTimeVar = NULL,
  bolusDoseVar = NULL
)

Arguments

data

data.frame; data set with dose information

idVar

character string; name of ID variable, defaults to id

infusionDoseTimeVar

character string; name of infusion dose time variable

infusionDoseVar

character string; name of infusion dose variable

moveBolus

logical; allow duplicate infusion doses to be categorized as bolus

bolusDoseTimeVar

character string; name of bolus dose time variable

bolusDoseVar

character string; name of bolus dose variable

Details

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.

Value

data.frame, containing dose data

Author(s)

Cole Beck


couthcommander/pkdata documentation built on Sept. 11, 2021, 10:22 p.m.