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

From: <robert.mcgehee_at_geodecapital.com>
Date: Thu, 07 Aug 2008 11:32:20 +0200 (CEST)

Full_Name: Robert McGehee
Version: 2.7.1
OS: Windows
Submission from: (NULL) (

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)
> sapply(x, is.numeric)

TRUE ## Yet, sapply seems aware of the Date class
> sapply(x, class)



PS. Sorry if this sent twice. I originally sent this on Monday to R-bugs_at_biostat.ku.dk, but it didn't seem to go through. Perhaps it's a deprecated email address (?).

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 07 Aug 2008 - 09:35:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 07 Aug 2008 - 10:36:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive