Learn R Programming

simmer (version 3.2.1.9000)

every: Arrivals every specific interval

Description

Generator convenience function to generate arrivals every specific interval. When the generator reaches the last interval, it starts again from the first one.

Usage

every(...)

Arguments

...

a vector or multiple parameters of intervals between arrivals.

Value

Returns a generator function.

See Also

add_generator, at, from, to, from_to.

Examples

Run this code
# NOT RUN {
t0 <- create_trajectory() %>% timeout(0)
env <- simmer(verbose=TRUE) %>%
  add_generator("dummy", t0, every(1, 2, 1)) %>%
  run(10)
# }

Run the code above in your browser using DataLab