Learn R Programming

simmer (version 3.5.0)

set_attribute: Add a set attribute activity

Description

Modify an attribute in the form of a key/value pair.

Usage

set_attribute(.trj, key, value)

Arguments

.trj
the trajectory object.
key
the attribute key (coerced to a string).
value
the value to set, accepts either a numeric or a callable object (a function) which must return a numeric.

Value

Returns the trajectory object.