sortDoses {pkdata}R Documentation

Sort Dose Data Set

Description

Helper function to sort dose data set by ID and time variables.

Usage

sortDoses(
  data,
  idVar = "id",
  infusionDoseTimeVar = NULL,
  bolusDoseTimeVar = NULL,
  otherDoseTimeVar = 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

bolusDoseTimeVar

character string; name of bolus dose time variable

otherDoseTimeVar

character string; name of additional dose time variable

Details

Sort order will be the ID variable, then infusion time, bolus time, or other dose date-time variables.

Value

data.frame, containing dose data

Author(s)

Cole Beck


[Package pkdata version 0.1.0 Index]