From robert.mcgehee at geodecapital.com  Thu Aug  7 11:32:20 2008
From: robert.mcgehee at geodecapital.com (robert.mcgehee at geodecapital.com)
Date: Thu,  7 Aug 2008 11:32:20 +0200 (CEST)
Subject: [Rd] sapply(Date, is.numeric) (PR#12008)
Message-ID: <20080807093220.5DEB0282EFC2@mail.pubhealth.ku.dk>

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.numeric)
  dt
TRUE

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

Thanks,
Robert

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 (?).



[Rd] sapply(Date, is.numeric) (PR#12008)
robert.mcgehee at geodecapital.com