[R] (Newbie)Basic Basic global vs. local variables
albmont at centroin.com.br
Mon Apr 2 21:33:09 CEST 2007
Jim Holtman wrote:
> The following will work, but I would suggest that you redesign your
> functions so that they do not use 'globals'; It is not nice for functions
> to have side-effects.
Globals are Evil, but, like goto, sometimes they can make a big
program become simpler. I don't see a nice alternative to globals
when I have a huge database where a lot of different functions
read and write.
But maybe this is ideology/religion/politics...
More information about the R-help