[R] R and pointer

Jeff Gentry jgentry at jimmy.harvard.edu
Fri Aug 29 14:34:21 CEST 2003


> I want to write a function that modify directly variables passed as
> parameters (the equivalent in C language of *ptr/&ptr) so that I don't
> have to return a list and to reaffect all my variables. Is it possible
> to do so in R? Thanks a lot.

You can use environments as they're passed by reference.




More information about the R-help mailing list