ev_repeat: Repeat a block of dosing events

View source: R/events.R

ev_repeatR Documentation

Repeat a block of dosing events

Description

Repeat a block of dosing events

Usage

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

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.

Value

See as.ev argument.

Examples

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")


mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.

Related to ev_repeat in mrgsolve...