rollback {simmer} | R Documentation |
Activity for going backwards to a previous point in the trajectory. Useful to implement loops.
rollback(.trj, amount, times = Inf, check = NULL)
.trj |
the trajectory object. |
amount |
the amount of activities (of the same or parent trajectories) to roll back. |
times |
the number of repetitions until an arrival may continue. |
check |
a callable object (a function) which must return a boolean. If
present, the |
Returns the trajectory object.