From pdalgd at gmail.com  Wed Jun 23 07:13:58 2010
From: pdalgd at gmail.com (Peter Dalgaard)
Date: Wed, 23 Jun 2010 08:13:58 +0300
Subject: [Rd] [R] New errors with difftime()-objects in 2.11.1 (was Re:
 Request: difftime method for cut())
In-Reply-To: <AANLkTilTYTbSqtBeMKqHCeZ-iMXh9Sxt4ApC-Ze-cHkp@mail.gmail.com>
References: <AANLkTimQdhAQLFBa3zKzC4ry_3x3w3r4S0ew5uLxPapx@mail.gmail.com>
	<95B55055-CC4E-4D1C-9005-97E9C2E2DDAF@comcast.net>
	<AANLkTilTYTbSqtBeMKqHCeZ-iMXh9Sxt4ApC-Ze-cHkp@mail.gmail.com>
Message-ID: <4C219816.5010707@gmail.com>

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: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



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