Displaying 1 result from an estimated 1 matches for "plotfit2".
Did you mean:
plotfit
2012 Jan 04
1
Is there a way to update a method on an existing Reference Class object?
...ot;cl1",
? fields=list(x="data.frame"),
? methods=list(
? ? init=function(){"Read and process data"},
? ? fitModel=function(){"Fit different kind of models and keep the
results in x and other fields"},
? ? plotFit1=function(){"Plot the fit one way"},
? ? plotFit2=function(){"Plot the fit in another way way"})
)
I would then initialize it and run the functions on it:
cl1Object <- cl1$new()
...
The problem then comes if I need to change something in one of the
methods, because I then have to run all the initialization and fitting
again, since t...