sorry (was Re: [R] copying R objects in C)

2004-05-06 Thread Tamas Papp
On Thu, May 06, 2004 at 04:33:02PM +0200, Tamas Papp wrote: [something utterly stupid] I somehow missed the end of the subject line. I sincerely apologize for my stupid and irrelevant answer. Tamas -- Tamás K. Papp E-mail: [EMAIL PROTECTED] Please try to send only (latin-2) plain text, not

Re: [R] copying R objects in C

2004-05-06 Thread Tamas Papp
You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. R performs a deep copy on demand, and generally you should not worry about this, just use the assignment operator -.

Re: [R] copying R objects in C

2004-05-06 Thread Prof Brian Ripley
On Thu, 6 May 2004, Tamas Papp wrote: You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. It's a C function (see the subject line), except that the external symbol

Re: [R] copying R objects in C

2004-05-06 Thread Thomas Lumley
On Thu, 6 May 2004, Tamas Papp wrote: You can tell what a function does by looking at its help page, eg: ?duplicate There is no such function in R (1.9.0), so I don't see how you came across that function name. R performs a deep copy on demand, and generally you should not worry about

Re: [R] copying R objects in C

2004-05-06 Thread Roger D. Peng
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,

Re: [R] copying R objects in C

2004-05-05 Thread Csardi Gabor
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