Thanks, that article is very helpful. D.
Gabor Grothendieck wrote:
>
> Read relevant article in R News 4/1.
>
--
View this message in context:
http://www.nabble.com/bug-in-difftime-with-as.POSIXct-tp15122749p15125302.html
Sent from the R help mailing list archive at Nabble.com.
_
Read relevant article in R News 4/1.
On Jan 27, 2008 2:20 PM, Dan Kelley <[EMAIL PROTECTED]> wrote:
>
> Oh, I'm sorry to be posting a reply to my own stupid question, but the
> problem is that I had not specified GMT, and so it was using local time,
> which changes to 'save daylight". This is dem
Oh, I'm sorry to be posting a reply to my own stupid question, but the
problem is that I had not specified GMT, and so it was using local time,
which changes to 'save daylight". This is demonstrated below:
> unclass(as.POSIXct("1975-04-27",tz="GMT"))[1]-unclass(as.POSIXct("1975-04-28",tz="GMT"))
I am trying to do ephemeris calculations in R, which involves calculating an
elapsed time. As illustrated below, difftime seems to have problems with my
method, since the fractional day is sometimes the correct 0.5 and sometimes
the incorrect 0.46.
I am doing this on with R-2.6.1 on a powerpc-a
4 matches
Mail list logo