Re: [Rd] sapply(Date, is.numeric) (PR#12239)

2008-08-07 Thread maechler
> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> > on Tue, 29 Jul 2008 15:40:37 -0400 writes: RobMcG> FYI, RobMcG> I've tried posting the below message twice to the bug tracking system, [... r-bugs problems discussed in a separate thread ] RobMcG> R-devel

Re: [Rd] sapply(Date, is.numeric) (PR#12244)

2008-08-07 Thread ripley
On Wed, 30 Jul 2008, Martin Maechler wrote: >> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> >> on Tue, 29 Jul 2008 15:40:37 -0400 writes: > >RobMcG> FYI, >RobMcG> I've tried posting the below message twice to the bug tracking > system, > >[... r-bugs problems discus

[Rd] sapply(Date, is.numeric) (PR#12221)

2008-08-07 Thread Robert . McGehee
FYI,=20 I've tried posting the below message twice to the bug tracking system, once by email (below), and the second time 5 days later directly to the bugs.r-project.org website. As far as I can tell, the bug tracking system hasn't picked this up. Also it looks like the latest "incoming" bug is dat

Re: [Rd] sapply(Date, is.numeric) (PR#11982)

2008-08-07 Thread Prof Brian Ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: R-developers, The results below are inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. x <- data.frame(dt=3DSys.Date()) is.numeric(x$dt) [1] FALSE sapply(x, is.numeric) dt TRU

Re: [Rd] sapply(Date, is.numeric) (PR#12008)

2008-08-07 Thread Prof Brian Ripley
For the record: this is now fixed. On Thu, 7 Aug 2008, [EMAIL PROTECTED] wrote: Full_Name: Robert McGehee Version: 2.7.1 OS: Windows Submission from: (NULL) (192.223.226.6) R-developers, The results below seem inconsistent. From the documentation for is.numeric, I expect FALSE in both cases.

[Rd] sapply(Date, is.numeric) (PR#11982)

2008-08-07 Thread Robert . McGehee
R-developers, The results below are inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. > x <- data.frame(dt=3DSys.Date()) > is.numeric(x$dt) [1] FALSE > sapply(x, is.numeric) dt TRUE ## Yet, sapply seems aware of the Date class > sapply(x, class) dt "Date" Tha

[Rd] sapply(Date, is.numeric) (PR#12008)

2008-08-07 Thread robert . mcgehee
Full_Name: Robert McGehee Version: 2.7.1 OS: Windows Submission from: (NULL) (192.223.226.6) R-developers, The results below seem inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. > x <- data.frame(dt=Sys.Date()) > is.numeric(x$dt) [1] FALSE > sapply(x, is.numeri

Re: [Rd] sapply(Date, is.numeric)

2008-07-31 Thread Martin Maechler
> "PBR" == Prof Brian Ripley <[EMAIL PROTECTED]> > on Thu, 31 Jul 2008 08:36:22 +0100 (BST) writes: PBR> I've now committed fixes in R-patched and R-devel. PBR> There is one consequence: data.matrix() was testing for numeric columns by PBR> unlist(lapply(x, is.numeric)) a

Re: [Rd] sapply(Date, is.numeric)

2008-07-31 Thread Prof Brian Ripley
I've now committed fixes in R-patched and R-devel. There is one consequence: data.matrix() was testing for numeric columns by unlist(lapply(x, is.numeric)) and so incorrectly treating Date and POSIXct columns as numeric (which we had decided they were not). This affects package gvlma. data.

Re: [Rd] sapply(Date, is.numeric)

2008-07-30 Thread Martin Maechler
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> > on Wed, 30 Jul 2008 13:29:38 +0100 (BST) writes: BDR> On Wed, 30 Jul 2008, Martin Maechler wrote: >>> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> >>> on Tue, 29 Jul 2008 15:40:37 -0400 writes: >> RobMcG

Re: [Rd] sapply(Date, is.numeric)

2008-07-30 Thread Prof Brian Ripley
On Wed, 30 Jul 2008, Martin Maechler wrote: "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> on Tue, 29 Jul 2008 15:40:37 -0400 writes: RobMcG> FYI, RobMcG> I've tried posting the below message twice to the bug tracking system, [... r-bugs problems discussed in a separate thr

Re: [Rd] sapply(Date, is.numeric)

2008-07-30 Thread Prof Brian Ripley
Try this workaround sapply(x, function(x) is.numeric(x)) dt FALSE is.numeric is primitive, and primitive functions don't always play well with [sl]apply. On Tue, 29 Jul 2008, McGehee, Robert wrote: FYI, I've tried posting the below message twice to the bug tracking system, once by emai

Re: [Rd] sapply(Date, is.numeric)

2008-07-30 Thread Martin Maechler
> "RobMcG" == McGehee, Robert <[EMAIL PROTECTED]> > on Tue, 29 Jul 2008 15:40:37 -0400 writes: RobMcG> FYI, RobMcG> I've tried posting the below message twice to the bug tracking system, [... r-bugs problems discussed in a separate thread ] RobMcG> R-devel

[Rd] sapply(Date, is.numeric)

2008-07-29 Thread McGehee, Robert
FYI, I've tried posting the below message twice to the bug tracking system, once by email (below), and the second time 5 days later directly to the bugs.r-project.org website. As far as I can tell, the bug tracking system hasn't picked this up. Also it looks like the latest "incoming" bug is dated