set_attribute: Set Attributes
Description
Activity for modifying an arrival's attributes.
Usage
set_attribute(.trj, keys, values, global = FALSE)set_global(.trj, keys, values)
Arguments
keys
the attribute name(s), or a callable object (a function) which
must return attribute name(s).
values
numeric value(s) to set, or a callable object (a function) which
must return numeric value(s).
global
if TRUE
, the attribute will be global instead of per-arrival.
Value
Returns the trajectory object.
Details
set_global
is a shortcut for set_attribute(global=TRUE)
.