Skip to content
Prev 8014 / 15274 Next

millisec timestamps for rows of xts/zoo object

On Sun, Jun 5, 2011 at 2:14 PM, Ulrich Staudinger <ustaudinger at gmail.com> wrote:
Try this assuming x is an xts object with POSIXct times:

z <- as.zoo(x)
time(z) <- as.numeric(time(z) - start(z))