powered by
Repeat a block of dosing events
ev_repeat(x, n, wait = 0, as.ev = FALSE)
See as.ev argument.
as.ev
event object or dosing data frame.
number of times to repeat.
time to wait between repeats.
if TRUE, an event object is returned; otherwise a data.frame is returned.
TRUE
e1 <- ev(amt = 100, ii = 24, addl = 20) e4 <- ev_repeat(e1, n = 4, wait = 168) mod <- mrgsolve::house() out <- mrgsim(mod, events = e4, end = 3200) plot(out, "CP")
Run the code above in your browser using DataLab