Hi
I try use hdf5 with quantmod and xts and I have some problems with dates.
Some ideas how can I restore the original date (or 'origin' parametr)?
regards
daniel cegielka
my session:
Something like:
goog <- .xts(GOOG, attr(GOOG,"index"))
should work. Note the *dot* preceding the *xts* call. This is the
internal version that uses raw
POSIXct timestamps for efficiency purposes.
This would also work:
goog <- xts(GOOG, as.POSIXct(attr(GOOG,"index"),origin="1970-01-01"))
HTH
Jeff
_______________________________________________
R-SIG-Finance at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only.
-- If you want to post, subscribe first.
Jeffrey Ryan
jeffrey.ryan at insightalgo.com
ia: insight algorithmics
www.insightalgo.com
Something like:
goog <- .xts(GOOG, attr(GOOG,"index"))
should work. Note the *dot* preceding the *xts* call. This is the
internal version that uses raw
POSIXct timestamps for efficiency purposes.
This would also work:
goog <- xts(GOOG, as.POSIXct(attr(GOOG,"index"),origin="1970-01-01"))
HTH
Jeff