add_global: Add a Global Attribute

View source: R/simmer-methods.R

add_globalR Documentation

Add a Global Attribute

Description

Attach a global variable to the simulation.

Usage

add_global(.env, key, value)

Arguments

.env

the simulation environment.

key

the attribute name.

value

the value to set, either a numeric or a schedule, so that the global may change during the simulation.

Value

Returns the simulation environment.

See Also

Convenience functions: schedule.


Enchufa2/simmer documentation built on Dec. 9, 2023, 4:43 a.m.