Learn R Programming

mrgsolve (version 1.5.2)

ev_repeat: Repeat a block of dosing events

Description

Repeat a block of dosing events

Usage

ev_repeat(x, n, wait = 0, as.ev = FALSE)

Value

See as.ev argument.

Arguments

x

event object or dosing data frame.

n

number of times to repeat.

wait

time to wait between repeats.

as.ev

if TRUE, an event object is returned; otherwise a data.frame is returned.

Examples

Run this code
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