[Rd] Question about copying arguments in C.

2012-09-14 Thread Simon Knapp
Hi List, I'd imagine this is a question that has been answered before, but I can't seem to track it down, sorry for the duplication if it has. I am writing an interface for a C library and want to return an S4 class from the 'constructing' method. One of the slots of the argument to be returned w

Re: [Rd] as.data.frame.character lacks nm= argument

2012-09-14 Thread peter dalgaard
On Sep 14, 2012, at 15:25 , Prof Brian Ripley wrote: > On 13/09/2012 21:48, Bert Gunter wrote: >> Bill: >> >> as.data.frame.character() has no nm, argument, so providing one causes >> the error as you can see from the code. Presumably, this is what you >> meant by bug/inconsistency, right? > >

Re: [Rd] as.data.frame.character lacks nm= argument

2012-09-14 Thread William Dunlap
Thanks Brian, I am not sure why the user who ran into this problem was using as.data.frame(theColumn, nm=theName) but it may have been an attempt to make a data.frame with a variable for a column name, which is a pain when calling data.frame. It also is faster, but I doubt that was the reason:

Re: [Rd] methods cbind2 bind_activation disrupts cbind everywhere

2012-09-14 Thread Jeff Ryan
Refreshing the memory on performance: http://r.789695.n4.nabble.com/reduce-limit-number-of-arguments-in-methods-cbind-td921600.html#a921601 My issue had been resolved by a more careful approach taken by timeSeries. The other option is wholesale deprecation of S4 ... but I won't start that conver

Re: [Rd] as.data.frame.character lacks nm= argument

2012-09-14 Thread Prof Brian Ripley
On 13/09/2012 21:48, Bert Gunter wrote: Bill: as.data.frame.character() has no nm, argument, so providing one causes the error as you can see from the code. Presumably, this is what you meant by bug/inconsistency, right? This is using an undocumented argument, 'nm'. I don't believe anything

Re: [Rd] as.data.frame.character lacks nm= argument

2012-09-14 Thread Bert Gunter
Bill: as.data.frame.character() has no nm, argument, so providing one causes the error as you can see from the code. Presumably, this is what you meant by bug/inconsistency, right? -- Bert On Thu, Sep 13, 2012 at 1:32 PM, William Dunlap wrote: > Is the following behavior with as.data.frame(nm=.

Re: [Rd] methods cbind2 bind_activation disrupts cbind everywhere

2012-09-14 Thread Martin Maechler
> Martin Morgan > on Wed, 12 Sep 2012 15:23:02 -0700 writes: > The methods package ?cbind2 includes the instruction to > use via methods:::bind_activation(TRUE). well, "instruction" only if one wants to magically enable its use for cbind(), rbind() > use via methods:::b