Hello,
I am writing a package with a collection of several models. In order to
allow users to play interactively with the models (in contrast to
hacking lengthy scripts), I want to put all what is needed to run a
particular model into a single list object for each model.
Then there will be a
I think what you want to write is:
setParms(lvmodel) - list(k1=0.5)
which means that you need to define an assignment function.
If you are using S3 style OOP (which you appear to be), then
do something along the lines of:
'setParms-' - function(x, value) UseMethod('setParms-')
Thomas Petzoldt wrote:
Hello,
I am writing a package with a collection of several models. In order to
allow users to play interactively with the models (in contrast to
hacking lengthy scripts), I want to put all what is needed to run a
particular model into a single list object for each model.