Re: [R] R and C - variable by reference

2008-05-15 Thread Duncan Murdoch
Naira wrote: Hi all, I would like to know if it is possible in R to give a the reference of a variable in a function; in order to be able to change the variable in the function and to keep the change when the function ended. In other words, is it possible to code this following C code in R: voi

[R] R and C - variable by reference

2008-05-15 Thread Naira
Hi all, I would like to know if it is possible in R to give a the reference of a variable in a function; in order to be able to change the variable in the function and to keep the change when the function ended. In other words, is it possible to code this following C code in R: void functionName