I have been trying to convert my data so I can get a xts data frame "data" with a time index and two colums Price and Volume. But so far I have had no luck with the code.
The data example can be found here. ftp://ftp.cmegroup.com/datamine_sample_data/ts/2012-11-05-e-mini-s-p-futures.csv
I only got to this stage so far:
require(data.table); require(xts)
data=fread("2012-11-05-e-mini-s-p-futures.csv");
data=data[,c(2,8,10),with=FALSE]
setnames(data,colnames(data),c('Time','Volume','Price'));
Then I have tried to work with the xts and POSIXct, but without any luck. Anyone got the magic fings to get it to work?