conformDoses: Create a Conforming Dose Data Set

Description Usage Arguments Details Value Author(s)

View source: R/prepareDoses.R

Description

Modify dose data such that it conforms for future use.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
conformDoses(
  doseData,
  idVar = "id",
  dateVar = "date.dose",
  infusionDoseTimeVar = NULL,
  infusionDoseVar = NULL,
  bolusDoseTimeVar = NULL,
  bolusDoseVar = NULL,
  otherDoseTimeVar = NULL,
  otherDoseVar = NULL,
  otherVars = NULL
)

Arguments

doseData

data.frame; data set with dose information

idVar

character string; name of ID variable, defaults to id

dateVar

character string; name of date variable, defaults to date.dose

infusionDoseTimeVar

character string; name of infusion dose time variable

infusionDoseVar

character string; name of infusion dose variable

bolusDoseTimeVar

character string; name of bolus dose time variable

bolusDoseVar

character string; name of bolus dose variable

otherDoseTimeVar

character string; name of additional dose time variable

otherDoseVar

character string; name of additional dose variable

otherVars

character string; name of other variables within data set

Details

Date-time variables are given a consistent format. Invalid records are removed. The data set is sorted by date.

Value

data.frame, containing dose data

Author(s)

Cole Beck


pkdata documentation built on Oct. 23, 2020, 6:19 p.m.