Learn R Programming

simecol (version 0.8-14)

editParms: Edit `parms', `init' or `times' Slot of `simecol' Objects

Description

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.

Usage

editParms(x)
  editTimes(x)
  editInit(x)

Arguments

x

A valid instance of the simObj class.

See Also

sEdit, simObj, parms, times, init, edit

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab