[R] Changing the value of variables passed to functions as arguments
Gabor Grothendieck
ggrothendieck at gmail.com
Thu Oct 6 05:01:34 CEST 2005
Check out:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/38536.html
On 10/5/05, Paul Baer <baer at stanford.edu> wrote:
> Is it possible to write functions in such a way that, rather than
> having to write "a=function(a)", one can just write "function(a)" and
> have the variable passed as the argument be modified?
>
> My real interest here is being able to invoke the editor by writing
> "ed(filename)" rather than filename=edit(filename).
>
> Thanks,
>
> --Paul
>
> ______________________________________________
> 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
>
More information about the R-help
mailing list