From hp@ge@ @end|ng |rom |redhutch@org  Thu Jan  9 18:31:54 2020
From: hp@ge@ @end|ng |rom |redhutch@org (Pages, Herve)
Date: Thu, 9 Jan 2020 17:31:54 +0000
Subject: [Rd] Get memory address of an R data frame
In-Reply-To: <736437f6-22b9-da92-8fb3-e931a83de39d@oracle.com>
References: <trinity-a73adb6e-7025-4545-9108-870c1a66fbfa-1578570504114@3c-app-mailcom-bs15>
 <830d3acf-aa30-5f26-408d-f35b5f0cc2d9@oracle.com>
 <trinity-6d5c6b7f-e9e8-4cdf-90ca-b9ec4b97a11a-1578580918843@3c-app-mailcom-bs07>
 <736437f6-22b9-da92-8fb3-e931a83de39d@oracle.com>
Message-ID: <b81a3e70-9bc9-bcc7-8d8f-843413bb64b5@fredhutch.org>

On 1/9/20 06:56, Stepan wrote:
> On 09. 01. 20 15:41, lille stor wrote:
> 
>> I believe this could be done without creating side effects (e.g. 
>> crash) as we are just talking about changing values.

A crash would certainly be an annoying "side effect" ;-)

As Stepan explained, data.frame objects like most objects in R should 
never be modified in-place. If you're looking for a data-frame-like 
structure with a reference semantic where in-place modifications are 
allowed, please take a look at the data.table package.

H.

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319


[Rd] Get memory address of an R data frame
Pages, Herve