A clone
activity replicates an arrival n
times (the original
one + n-1
copies). A synchronize
activity removes all but one clone.
clone(.trj, n, ...)synchronize(.trj, wait = TRUE, mon_all = FALSE)
the trajectory object.
number of clones, accepts either a numeric or a callable object (a function) which must return a numeric.
optional parallel sub-trajectories. Each clone will follow a different sub-trajectory if available.
if FALSE
, all clones but the first to arrive are removed.
if TRUE
(default), all clones but the last to arrive are removed.
if TRUE
, get_mon_arrivals
will show one
line per clone.
Returns the trajectory object.