Re: [R] Pass By Value Questions

2010-08-20 Thread Jens Oehlschlägel
Jeff, R has 'environments' as a general mechanism to pass around objects by reference. However, that does not help with most functions like 'apply' which take arguments other than environments. > I'm familiar with FF and BigMemory, but are there any packages/tricks> which > allow for passing s

Re: [R] Pass By Value Questions

2010-08-20 Thread Matthew Dowle
To: r-help Cc: Jeff, Matt, Duncan, Hadley [ using Nabble to cc ] Jeff, Matt, How about the 'refdata' class in package ref. Also, Hadley's immutable data.frame in plyr 1.1. Both allow you to refer to subsets of a data.frame or matrix by reference I believe, if I understand correctly. Matthew

Re: [R] Pass By Value Questions

2010-08-19 Thread Matt Shotwell
On Thu, 2010-08-19 at 14:27 -0400, Duncan Murdoch wrote: > On 19/08/2010 12:57 PM, li...@jdadesign.net wrote: > > I understand R is a "Pass-By-Value" language. I have a few practical > > questions, however. > > > > I'm dealing with a "large" dataset (~1GB) and so my understanding of the > > nuances

Re: [R] Pass By Value Questions

2010-08-19 Thread Duncan Murdoch
On 19/08/2010 12:57 PM, li...@jdadesign.net wrote: I understand R is a "Pass-By-Value" language. I have a few practical questions, however. I'm dealing with a "large" dataset (~1GB) and so my understanding of the nuances of memory usage in R is becoming important. In an example such as: > d <-

[R] Pass By Value Questions

2010-08-19 Thread lists
I understand R is a "Pass-By-Value" language. I have a few practical questions, however. I'm dealing with a "large" dataset (~1GB) and so my understanding of the nuances of memory usage in R is becoming important. In an example such as: > d <- read.csv("file.csv"); > n <- apply(d, 1, sum); must "