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

From: Paul Baer <baer_at_stanford.edu>
Date: Thu 06 Oct 2005 - 12:43:54 EST


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 Received on Thu Oct 06 12:57:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:36 EST