Skip to content
Prev 21266 / 29559 Next

Date indexing error for STFDF objects?

Dear David, thanks for the clear report!

I believe this is a time zone issue -- in my time zone,
[1] "2009-03-21"
[1] "Date"
[1] "2009-03-21 01:00:00 CET"

internally xts, and hence spacetime, work with POSIXct time stamps.

If I run R with environmental variable TZ="", or TZ="GMT", I see
[1] "2009-03-21 GMT"
Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
  13.71   20.06   26.45   31.94   31.03  269.10      32
Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
  3.523  10.150  14.410  15.970  21.830  31.080      32

would that be right?

# with TZ="" or TZ="GMT":
[1] "2009-01-01" "2009-12-30"
# with TZ not set:
[1] "2008-12-31" "2009-12-30"

So, it looks like the data set rr uses start-of-day time indexes, in
seconds (POSIXct), in GMT.
On 07/03/2014 02:16 PM, d.g.rossiter at utwente.nl wrote: