Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-05 Thread Ruihong Huang
Thank all of you! On 05/05/2010 12:08 AM, Steve Lianoglou wrote: Hi, On Tue, May 4, 2010 at 5:05 PM, Ruihong Huang ruihong.hu...@wiwi.hu-berlin.de wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-05 Thread Seth
As far as large data sets, I've just discovered readLines and writeLines functions. I'm using it now to read in single rows, calculate things on them, and then write a single row to a file. -- View this message in context: http://r.789695.n4.nabble.com/Two-Questions-on-R-call-by-reference

[R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Ruihong Huang
Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is very cost, if I would like to pass a huge data set to a function. Is there any situations that R doesn't copy

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Steve Lianoglou
Hi, On Tue, May 4, 2010 at 5:05 PM, Ruihong Huang ruihong.hu...@wiwi.hu-berlin.de wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is technically

Re: [R] Two Questions on R (call by reference and pre-compilation)

2010-05-04 Thread Duncan Murdoch
On 04/05/2010 5:05 PM, Ruihong Huang wrote: Hi All, I have two questions on R. Could you please explain them to me? Thank you! 1) When call a function, R typically copys the values to formal arguments (call by value). This is very cost, if I would like to pass a huge data set to a function.