Re: [Rd] paste() with NAs .. change worth persuing?

2007-08-24 Thread Martin Maechler
PS == Petr Savicky [EMAIL PROTECTED] on Thu, 23 Aug 2007 15:49:32 +0200 writes: PS On Wed, Aug 22, 2007 at 08:53:39PM +0300, Jari Oksanen wrote: On 22 Aug 2007, at 20:16, Duncan Murdoch wrote: A fairly common use of paste is to put together reports for human

Re: [Rd] paste() with NAs .. change worth persuing?

2007-08-23 Thread Jari Oksanen
On 22 Aug 2007, at 20:16, Duncan Murdoch wrote: On 8/22/2007 11:50 AM, Martin Maechler wrote: Consider this example code c1 - letters[1:7]; c2 - LETTERS[1:7] c1[2] - c2[3:4] - NA rbind(c1,c2) ## [,1] [,2] [,3] [,4] [,5] [,6] [,7] ## c1 a NA c d e f g ## c2 A B NA

Re: [Rd] paste() with NAs .. change worth persuing?

2007-08-23 Thread Petr Savicky
On Wed, Aug 22, 2007 at 08:53:39PM +0300, Jari Oksanen wrote: On 22 Aug 2007, at 20:16, Duncan Murdoch wrote: A fairly common use of paste is to put together reports for human consumption. Currently we have p - as.character(NA) paste(the value of p is, p) [1] the value of p is NA

[Rd] paste() with NAs .. change worth persuing?

2007-08-22 Thread Martin Maechler
Consider this example code c1 - letters[1:7]; c2 - LETTERS[1:7] c1[2] - c2[3:4] - NA rbind(c1,c2) ## [,1] [,2] [,3] [,4] [,5] [,6] [,7] ## c1 a NA c d e f g ## c2 A B NA NA E F G paste(c1,c2) ## - [1] a A NA B c NA d NA e E f F g G where a more logical

Re: [Rd] paste() with NAs .. change worth persuing?

2007-08-22 Thread Duncan Murdoch
On 8/22/2007 11:50 AM, Martin Maechler wrote: Consider this example code c1 - letters[1:7]; c2 - LETTERS[1:7] c1[2] - c2[3:4] - NA rbind(c1,c2) ## [,1] [,2] [,3] [,4] [,5] [,6] [,7] ## c1 a NA c d e f g ## c2 A B NA NA E F G paste(c1,c2) ## - [1] a