View source: R/add-to-simulation.R
add | R Documentation |
Adds a ModelRef, DrawsRef, OutputRef, or EvalsRef to a simulation object. To add a DrawsRef, the corresponding ModelRef must already be added. Likewise, to add an OutputRef, the corresponding DrawsRef must already be added. And to add an EvalsRef, the corresponding OutputRef must be added. One can also pass a list of such objects.
add(sim, ref, ...) ## S4 method for signature 'Simulation,ModelRef' add(sim, ref, update_saved = TRUE) ## S4 method for signature 'Simulation,DrawsRef' add(sim, ref, update_saved = TRUE) ## S4 method for signature 'Simulation,OutputRef' add(sim, ref, update_saved = TRUE) ## S4 method for signature 'Simulation,EvalsRef' add(sim, ref, update_saved = TRUE) ## S4 method for signature 'Simulation,list' add(sim, ref, update_saved = TRUE)
sim |
simulation being added to |
ref |
the reference object being added |
... |
not used |
update_saved |
default is TRUE. Determines whether change to simulation object should be saved to file |
The modified simulation object is saved to file if update_saved
is
TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.