join: Join Trajectories

View source: R/trajectory-methods.R

joinR Documentation

Join Trajectories

Description

Concatenate any number of trajectories in the specified order.

Usage

join(...)

Arguments

...

trajectory objects.

Value

Returns a new trajectory object.

See Also

Extract.trajectory, length.trajectory, get_n_activities.

Examples

t1 <- trajectory() %>% seize("dummy", 1)
t2 <- trajectory() %>% timeout(1)
t3 <- trajectory() %>% release("dummy", 1)

## join can be used alone
join(t1, t2, t3)

## or can be chained in a trajectory definition
trajectory() %>%
  join(t1) %>%
  timeout(1) %>%
  join(t3)


simmer documentation built on Aug. 22, 2023, 5:09 p.m.