[R] 3 questions regarding matrix copy/shuffle/compares

hadley wickham h.wickham at gmail.com
Sun Apr 26 17:38:20 CEST 2009


In that case, you would want a shallow copy, and you'd need to jump
through a lot of hoops to do that in R.

Hadley

On Sun, Apr 26, 2009 at 10:35 AM, David Winsemius
<dwinsemius at comcast.net> wrote:
> My understanding of the OP's request was for some sort of copy which did
> change when entries in the original were changed; the sort of behavior that
> might be seen  in a spreadsheet that had a copy "by reference".
>
> On Apr 26, 2009, at 11:28 AM, hadley wickham wrote:
>
>>>> I want to (1) create a deep copy of pop,
>>>
>>> I have already said *I* do not know how to create a "deep copy" in R.
>>
>> Creating a deep copy is easy, because all copies are "deep" copies.
>> You need to try very hard to create a reference in R.
>>
>> Hadley
>
> --
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
>



-- 
http://had.co.nz/




More information about the R-help mailing list