sortDoses: Sort Dose Data Set

Description Usage Arguments Details Value Author(s)

View source: R/sortDoses.R

Description

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

Usage

1
2
3
4
5
6
7
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


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