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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 07 Aug 2008 10:48:26 +0100 (BST)

For the record: this is now fixed.

On Thu, 7 Aug 2008,
Robert.McGehee_at_geodecapital.com 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
> 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}}
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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