editParms | R Documentation |
The functions invoke an editor dialog for parameters, initial
values or time steps of simObj
objects and then assign the
new (edited) version of x
in the user's workspace. A Tcl/Tk
version or spreadsheet editor is displayed if possible, depending
on the structure of the respective slot.
editParms(x)
editTimes(x)
editInit(x)
x |
A valid instance of the |
sEdit
, simObj
,
parms
, times
, init
,
edit
## Not run:
require("tcltk")
data(lv) # load basic Lotka-Volterra model
lv <- editParms(lv)
plot(sim(lv))
data(conway) # Conway's game of life
init(conway) <- matrix(0, 10, 10)
conway <- editInit(conway) # enter some "1"
sim(conway, animate = TRUE, delay = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.