set_attribute {simmer} | R Documentation |
Activity for modifying an arrival's attributes.
set_attribute(.trj, keys, values, global = FALSE, mod = c(NA, "+", "*"), init = 0) set_global(.trj, keys, values, mod = c(NA, "+", "*"), init = 0)
.trj |
the trajectory object. |
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 |
mod |
if set, |
init |
initial value, applied if |
set_global
is a shortcut for set_attribute(global=TRUE)
.
Returns the trajectory object.