ivt_toList: Convert infusion schedule characteristics to list format

View source: R/ivt_to_list.R

ivt_toListR Documentation

Convert infusion schedule characteristics to list format

Description

Helper function: Given vectors that characterize the infusion schedule, this helper function converts the vectors to list format for compatibility with other package functions

Usage

ivt_toList(begin, end = NULL, dur = NULL, rate)

Arguments

begin

Times at which each infusion began (relative to start of first infusion)

end

Times at which each infusion ended (relative to start of first infusion)

dur

Duration of each dose

rate

Rate of infusion for each dose

Value

A list characterizing the infusion schedule

Examples

# Using begin/end times
b <- c(0, 8, 16, 24)
e <- c(0.5, 8.5, 16.5, 24.5)
r <- rep(6, 4)
ivt_toList(begin = b, end = e, rate = r)

# Using begin time with infusion duration
b <- c(0, 8, 16, 24)
d <- 0.5 # Or d <- rep(0.5, 4)
r <- 6
ivt_toList(begin = b, dur = d, rate = r)


hlweeks/pkpredict documentation built on Oct. 29, 2023, 6:08 a.m.