Re: [R] altering a global variable

2009-06-15 Thread jebyrnes
Wow. That's actually quite beautiful. Gratzi - both to you and the authors of the language. Henrique Dallazuanna wrote: > > Try: > > > a <- function(x)m<<-4 > > On Mon, Jun 15, 2009 at 3:10 PM, Jarrett Byrnes > wrote: > > -- View this message in context: http://www.nabble.com/alterin

Re: [R] altering a global variable

2009-06-15 Thread Henrique Dallazuanna
Try: a <- function(x)m<<-4 On Mon, Jun 15, 2009 at 3:10 PM, Jarrett Byrnes wrote: > I'm working on a program that loads several large data files. I'm > using ddply (plyr is really awesome) but I want to minimize the amount > of times a large data file is read in. One solution is to keep trac

[R] altering a global variable

2009-06-15 Thread Jarrett Byrnes
I'm working on a program that loads several large data files. I'm using ddply (plyr is really awesome) but I want to minimize the amount of times a large data file is read in. One solution is to keep track of which data file is open with a global variable and then change the currently ope