For some reason I am having issues creating a time series object. Example below:
dat = read.csv("latency.csv", header = FALSE)
x <- dat[1:10,1:2]
x
V1 V2
1 08:48:17 85.258
2 08:48:17 39.471
3 09:00:02 11.645
4 09:00:02 39.380
5 09:00:02 40.866
6 09:00:17 22.138
7 09:00:21 10.935
8 09:00:30 40.884
9 09:00:30 41.130
10 09:00:30 40.230
By using the same approach I normally use:
my.xts <- xts(dat[,-1], order.by=dat[,1])
Error in xts(dat[, -1], order.by = dat[, 1]) :
order.by requires an appropriate time-based object
I would appreciate any pointers