[R] Any concept of 'by reference' or 'address of' in R?

Steve Lianoglou mailinglist.honeypot at gmail.com
Sat Sep 19 03:10:30 CEST 2009


On Fri, Sep 18, 2009 at 8:11 PM, Don MacQueen <macq at llnl.gov> wrote:
> I wouldn't assume R is making a copy; it depends on what you're doing with
> the dataframe.

Indeed ... I thought R had copy-on-write semantics for function
arguments, no? If so, then if your function doesn't change the
elements in the matrix/data.frame, then you shouldn't have to worry,
and look to optimize elsewhere ...

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact




More information about the R-help mailing list