Re: [R] copying R objects in C

About this list Date view Thread view Subject view Author view Attachment view

From: Roger D. Peng (rpeng@jhsph.edu)
Date: Fri 07 May 2004 - 01:17:34 EST


Message-id: <409A570E.9090703@jhsph.edu>

The source for `duplicate' and its usage in the R source seems to
imply that it copies objects in general.

I've never used it though, so my $0.02 has been devalued.

-roger

Csardi Gabor wrote:
> answer to myself:
>
> the 'duplicate' function does this, am I right?
> It seems so....
>
> Gabor
>
> On Thu, May 06, 2004 at 02:18:19AM +0200, Csardi Gabor wrote:
>
>>Dear R Users,
>>
>>do you know a way to copy an R object using C code? I know that
>>there is a copyMatrix and also a copyVector function. There is
>>also something called copyListMatrix, what is this good for? Is
>>there anything for copying a list (of course deep copy is
>>needed)?
>>
>>Thank you for your help,
>>Gabor
>
> [...]
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST