ivt_toList | R Documentation |
Helper function: Given vectors that characterize the infusion schedule, this helper function converts the vectors to list format for compatibility with other package functions
ivt_toList(begin, end = NULL, dur = NULL, rate)
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 |
A list characterizing the infusion schedule
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.