Render | R Documentation |
Class to render output for the simulation.
new()
Initialise a renderer for the simulation, creates the default state renderers.
Render$new(timesteps)
timesteps
number of timesteps in the simulation.
set_default()
Set a default value for a rendered output renderers.
Render$set_default(name, value)
name
the variable to set a default for.
value
the default value to set for a variable.
render()
Update the render with new simulation data.
Render$render(name, value, timestep)
name
the variable to render.
value
the value to store for the variable.
timestep
the time-step of the data point.
to_dataframe()
Return the render as a data.frame
.
Render$to_dataframe()
clone()
The objects of this class are cloneable with this method.
Render$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.