search for: particular1

Displaying 1 result from an estimated 1 matches for "particular1".

Did you mean: particular
2004 Mar 25
0
Problems with environments, I think..
...ed for calculations. I call this function through different functions corresponding to different particular cases of this method. The particular function create a list, and in this list, I have a function which can modify other elements of the list for updating purposes. See the example below: particular1=function() { obj=list() obj$names=c("obj$c1","obj$c2") obj$c1=8 obj$update=function(obj) {obj$c1=15; print(obj$c1)} general(obj) } general=function(obj){ obj$c2<-10 print(obj$c1*obj$c2) upd=eval(parse(text=deparse(obj$update))) upd(obj) print(obj$c1*obj$c2) } particular1()...