[R] call by reference

Henrik Bengtsson hb at stat.berkeley.edu
Thu Dec 21 08:45:41 CET 2006


There is no support for 'call by reference' in the S language, and
this is intentionally, but you can use environments to imitate it, cf.
?environment.  See also the R.oo package.

/Henrik

On 12/20/06, biter bilen <biterbilen at yahoo.com> wrote:
> Can anyone help me about pass by reference of arguments in R functions?
>
> I have read about .Alias in base package however it is defunct and there is no replacement for it.
>
> Thanks in advance.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list