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(int &var){}

Thanks a lot,
Naira
-- 
View this message in context: 
http://www.nabble.com/R-and-C---variable-by-reference-tp17249053p17249053.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to