[R] Setting working directory interactively within a function

2005-10-14 Thread Paul Baer
Is there anyway to have a function prompt the user for a working directory, equivalent to file.choose()? --Paul __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] reading matrix objects into a list

2005-10-13 Thread Paul Baer
OK, I've tried to be a good citizen and use the searchable archives, but with three search strings I haven't found the answer to what must really be a simple question. I want to create a list of objects from a set of matrices (in this case, 300x300). Suppose the first matrix is A. I tried:

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

2005-10-05 Thread Paul Baer
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