Activity for modifying an arrival's attributes.
set_attribute(.trj, keys, values, global = FALSE, mod = c(NA, "+", "*"))set_global(.trj, keys, values, mod = c(NA, "+", "*"))
the trajectory object.
the attribute name(s), or a callable object (a function) which must return attribute name(s).
numeric value(s) to set, or a callable object (a function) which must return numeric value(s).
if TRUE
, the attribute will be global instead of per-arrival.
if set, values
modify the attributes rather than substituting them.
Returns the trajectory object.
set_global
is a shortcut for set_attribute(global=TRUE)
.