Re: [R] [Rd] New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())

From: Peter Dalgaard <>
Date: Wed, 23 Jun 2010 08:13:58 +0300

Gustaf Rydevik wrote:

> Oh, I forgot to mention that the workaround of using as.double (or
> as.numeric) works fine, and I've done that.
> It's just that it can take quite a while (as in several hours) to
> figure out that the reason for the error is that you have to force
> difftime objects to be numeric in 2.11.1, when the code's been working
> fine before and the error messages are obscure.

I don't think you realize the problems that could occur by assuming that difftime objects are numerics ON ANY PARTICULAR SCALE!

Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email:  Priv:

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 23 Jun 2010 - 05:16:43 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 Wed 23 Jun 2010 - 20:50:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive