Displaying 1 result from an estimated 1 matches for "tp3690026p3693582".
2011 Jul 24
3
Variable scope in functions - best practices
Hi,
I'm working on coding some more complex things in R and have need to break much of the logic into functions.
I have several "global" variables that I want to change with a given function. (The variable has a different value after the function is called.)
In other languages like C, this is simple. However, in R, if a function changes a variable, that change only occurs in the