Learn R Programming

simmer (version 3.1.1)

set_attribute: Add a set attribute activity

Description

Adds a new key/value attribute. The value should be numeric.

Usage

set_attribute(traj, key, value)

Arguments

traj

the trajectory object.

key

the attribute key (is coerced to a string).

value

the value (should be numeric or a function which returns a numeric).

Value

The trajectory object.

See Also

Other methods to deal with trajectories: create_trajectory, get_head, get_tail, get_n_activities, seize, release, timeout, branch, rollback.