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

From: <Robert.McGehee_at_geodecapital.com>
Date: Thu, 07 Aug 2008 11:28:57 +0200 (CEST)

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)
> sapply(x, is.numeric)
TRUE ## Yet, sapply seems aware of the Date class
> sapply(x, class)


Robert McGehee, CFA
Geode Capital Management, LLC
One Post Office Square, 28th Floor | Boston, MA | 02109 Tel: 617/392-8396 Fax:617/476-6389

This e-mail, and any attachments hereto, are intended fo...{{dropped:13}}

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 07 Aug 2008 - 09:35:52 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