Re: [Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-16 Thread Kjetil Brinchmann Halvorsen
6, 2006 7:21 AM >> To: Raubertas, Richard >> Cc: r-devel@stat.math.ethz.ch >> Subject: Re: [Rd] rownames() problem with 0-extent arrays (PR#9136) >> >> >> R-bugs is not the place to ask questions, see the FAQ > > Yes, I should have sent a separate message

Re: [Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-16 Thread Raubertas, Richard
th.ethz.ch > Subject: Re: [Rd] rownames() problem with 0-extent arrays (PR#9136) > > > R-bugs is not the place to ask questions, see the FAQ Yes, I should have sent a separate message. > > On Fri, 11 Aug 2006, [EMAIL PROTECTED] wrote: > > [...] > > > A sep

Re: [Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-16 Thread ripley
The bug here comes from code assuming that paste("row", numeric(0), sep="") is of length 0. See ?paste. Fixed for 2.4.0. On Fri, 11 Aug 2006, [EMAIL PROTECTED] wrote: > [R 2.3.1 on Windows XP] > > Hello, > The 'do.NULL=FALSE' option of 'rownames' and 'colnames' does not > work as documented

Re: [Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-16 Thread Prof Brian Ripley
R-bugs is not the place to ask questions, see the FAQ On Fri, 11 Aug 2006, [EMAIL PROTECTED] wrote: [...] > A separate but related question (not a bug) has to do with the handling > of dimnames for 0-extent arrays. If an array starts out with non-NULL > dimnames and is subscripted down to

[Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-10 Thread richard_raubertas
[R 2.3.1 on Windows XP] Hello, The 'do.NULL=FALSE' option of 'rownames' and 'colnames' does not work as documented when the array has a 0-extent dimension: tmp <- matrix(1:15, ncol=3, dimnames=list(letters[1:5], LETTERS[1:3])) rownames(tmp) # Fine rownames(tmp[0,,drop=FALSE]) # NULL (okay, b