Collect a number of arrivals before they can continue processing or split a previously established batch.
batch(.trj, n, timeout = 0, permanent = FALSE, name = "", rule = NULL)separate(.trj)
the trajectory object.
batch size, accepts a numeric.
set an optional timer which triggers batches every timeout
time
units even if the batch size has not been fulfilled, accepts a numeric (0 = disabled).
if TRUE
, batches cannot be split.
optional string. Unnamed batches from different batch
activities are
independent. However, if you want to feed arrivals from different trajectories into a
same batch, you need to specify a common name across all your batch
activities.
an optional callable object (a function) which will be applied to every arrival to determine whether it should be included into the batch, thus
Returns the trajectory object.