From Robert.McGehee at geodecapital.com  Thu Aug  7 11:28:57 2008
From: Robert.McGehee at geodecapital.com (Robert.McGehee at geodecapital.com)
Date: Thu,  7 Aug 2008 11:28:57 +0200 (CEST)
Subject: [Rd] sapply(Date, is.numeric) (PR#11982)
Message-ID: <20080807092857.A2944282EFF1@mail.pubhealth.ku.dk>

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"

Thanks,

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



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



[Rd] sapply(Date, is.numeric) (PR#11982)
Robert.McGehee at geodecapital.com