Re: [R] Changing the value of variables passed to functions as arguments

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Thu 06 Oct 2005 - 13:01:34 EST

Check out:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/38536.html

On 10/5/05, Paul Baer <baer@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@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
>



R-help@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 Received on Thu Oct 06 13:04:16 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:23:52 EST