vars {SimEngine} | R Documentation |
Access internal simulation variables
Description
This is a "getter function" that returns the value of an internal simulation variable. Do not change any of these variables manually.
Usage
vars(sim, var)
Arguments
sim |
A simulation object of class |
var |
If this argument is omitted,
|
Value
The value of the internal variable.
Examples
sim <- new_sim()
sim %<>% set_levels(n = c(10, 100, 1000))
sim %<>% set_config(num_sim=10)
print(vars(sim, "seed"))
print(vars(sim, "env"))
print(vars(sim, "num_sim_total"))