conformDoses {pkdata} | R Documentation |
Create a Conforming Dose Data Set
Description
Modify dose data such that it conforms for future use.
Usage
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
[Package pkdata version 0.1.0 Index]