Re: [Rd] [R] rownames, colnames, and date and time

2006-03-30 Thread Prof Brian Ripley
On Thu, 30 Mar 2006, Patrick Burns wrote: > I haven't been following all of this thread, but > it reminds me of a bug that was in S-PLUS not > too long ago where dimnames could sometimes > be numeric. This caused some problems that > were very hard to track down because there were > no visual clu

Re: [Rd] [R] rownames, colnames, and date and time

2006-03-30 Thread Patrick Burns
I haven't been following all of this thread, but it reminds me of a bug that was in S-PLUS not too long ago where dimnames could sometimes be numeric. This caused some problems that were very hard to track down because there were no visual clues of what was really wrong. I've been pleased not to

Re: [Rd] [R] rownames, colnames, and date and time

2006-03-29 Thread Prof Brian Ripley
Looking at the code it occurs to me that there is another case you have not considered, namely dimnames(). rownames<- and colnames<- are just wrappers for dimnames<-, so consistency does mean that all three should behave the same. For arrays (including matrices), dimnames<- is primitive. It co

Re: [Rd] [R] rownames, colnames, and date and time

2006-03-29 Thread Prof Brian Ripley
Yet again, this is the wrong list for suggesting changes to R. Please do use R-devel for that purpose (and I have moved this). If this bothers you (it all works as documented, so why not use it as documented?), please supply a suitable patch to the current R-devel sources and it will be consid