[R] Is there lazy copy in R?

Linlin Yan yanlinlin82 at gmail.com
Tue Dec 15 05:44:28 CET 2009


It means that R does have the lazy copy mechanism, which I didn't
know, and I think it can be very useful to make R running more
quickly.

On Tue, Dec 15, 2009 at 12:15 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>> a=1:10
>> b=a
>> a=1:10
>> tracemem(a)# I assume the following is address 'a' points to
> [1] "<0x05cf2798>"
>> b=a
>> b[1]=1
> tracemem[0x05cf2798 -> 0x05cf2750]:
> tracemem[0x05cf2750 -> 0x05ed8ba0]:
>
> I don't understand what these addresses mean. Would you please help me
> understand it?




More information about the R-help mailing list