set_attribute

0th

Percentile

Set Attributes

Activity for modifying an arrival's attributes.

Usage
set_attribute(.trj, keys, values, mod = c(NA, "+", "*"), init = 0)

set_global(.trj, keys, values, mod = c(NA, "+", "*"), init = 0)

Arguments
.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).

mod

if set, values modify the attributes rather than substituting them.

init

initial value, applied if mod is set and the attribute was not previously initialised. Useful for counters or indexes.

Value

Returns the trajectory object.

See Also

get_attribute, get_global, timeout_from_attribute, timeout_from_global.

Aliases
  • set_attribute
  • set_global
Documentation reproduced from package simmer, version 4.2.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.