Learn R Programming

simmer (version 3.5.1)

at: Arrivals at specific times

Description

Generator convenience function to generate arrivals at specific times.

Usage

at(...)

Arguments

...
a vector or multiple parameters of times at which to initiate an arrival.

Value

Returns a generator function.

See Also

add_generator.

Examples

Run this code
t0 <- create_trajectory() %>% timeout(0)
env <- simmer(verbose=TRUE) %>%
  add_generator("dummy", t0, at(0, c(1,10,30), 40, 43)) %>%
  run(100)

Run the code above in your browser using DataLab