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

From: Gustaf Rydevik <gustaf.rydevik_at_gmail.com>
Date: Tue, 22 Jun 2010 20:01:52 +0200

On Tue, Jun 22, 2010 at 7:50 PM, David Winsemius <dwinsemius_at_comcast.net> wrote:
>
> On Jun 22, 2010, at 1:33 PM, Gustaf Rydevik wrote:

> Cannot help you there, but have you looked at the help page for difftime?
>
> "The as.double method returns the numeric value expressed in the specified
> units. Using units = "auto" means the units of the object."
>
>
> David Winsemius, MD
> West Hartford, CT
>
>

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.

Regards,
Gustaf

-- 
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gustaf_rydevik

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 22 Jun 2010 - 18:05:12 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 - 07:21:16 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