Skip to content
Prev 4789 / 15274 Next

Non unique timestamp in zoo object

jatin patni wrote:
Your target should be POSIXct, as that is what xts uses internally, 
given that your stated goal is to use xts and quantmod.

?as.POSIXct
?format.POSIXct

These look like one second bars, not microsecond bars.  To see 
microseconds, if you have them:

options(digits.secs=6)

zoo doesn't require unique timestamps, just ordered ones.  In this case, 
your trades are ordered in the files.  You might need to append an order 
in the microseconds if you really only have second bars.  It's also not 
necessary to have unique timestamps, but you'll be happier if you do.

Regards,

   - Brian