vars | R Documentation |
This is a "getter function" that returns the value of an internal simulation variable. Do not change any of these variables manually.
vars(sim, var)
sim |
A simulation object of class |
var |
If this argument is omitted,
|
You can also access simulation variables through sim$vars, where
sim
is your simulation object (see examples).
The value of the internal variable.
sim <- new_sim()
sim %<>% set_levels(
"n" = c(10, 100, 1000)
)
sim %<>% set_config(num_sim=10)
vars(sim, "num_sim_total") %>% print()
sim$vars$num_sim_total %>% print()
vars(sim) %>% print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.