Re: [R] Internal functions

2007-12-07 Thread Charles C. Berry
See ?body HTH, Chuck On Fri, 7 Dec 2007, piotr iksiński wrote: I've complex problem and this's idealization of it: v=1:10 fx<-function(x){ v[x]=v[x]*2} fy<-function(y){ fx(y)} for(i in 1:10){ fy(i)} How to modife expresion (and only that): {v[x]=v[x]^2} to achive the redefin

[R] Internal functions

2007-12-07 Thread piotr iksiński
I've complex problem and this's idealization of it: v=1:10 fx<-function(x){ v[x]=v[x]*2} fy<-function(y){ fx(y)} for(i in 1:10){ fy(i)} How to modife expresion (and only that): {v[x]=v[x]^2} to achive the redefinetion of the values of vector v, the result should be: v=(1:10)*2. I think, that