Re: [Rd] Changing the generic of as.data.frame

2006-05-22 Thread Bill Dunlap
On Mon, 22 May 2006, Prof Brian Ripley wrote: > On Mon, 22 May 2006, Bill Dunlap wrote: > > > On Mon, 22 May 2006, Prof Brian Ripley wrote: > > > >> The other motivation was to allow the option to not convert character > >> vectors to factors, which needed an additional argument to > >> as.data.fr

Re: [Rd] Changing the generic of as.data.frame

2006-05-22 Thread Bill Dunlap
On Mon, 22 May 2006, Prof Brian Ripley wrote: > The other motivation was to allow the option to not convert character > vectors to factors, which needed an additional argument to > as.data.frame.character. So data.frame now has an argument 'charToFactor' > controlled by a global option (which als

Re: [Rd] Changing the generic of as.data.frame

2006-05-22 Thread Prof Brian Ripley
On Mon, 22 May 2006, Bill Dunlap wrote: > On Mon, 22 May 2006, Prof Brian Ripley wrote: > >> The other motivation was to allow the option to not convert character >> vectors to factors, which needed an additional argument to >> as.data.frame.character. So data.frame now has an argument 'charToFac

[Rd] Changing the generic of as.data.frame

2006-05-22 Thread Prof Brian Ripley
I have changed the generic to as.data.frame in R-devel by adding a '...' argument. This means that any methods which do not have a '...' argument (quite a few do) will generate a warning in R CMD check: the fix is very simple (and backwards compatible): just add a '...' argument to the method.