I\'m trying to convert a data frame to xts object using the as.xts()-method. Here is my input dataframe q:
q t x 1 2006-01-01 00:00:
A simple solution is to first convert the data.frame to a data.table:
data.frame
data.table
library(data.table) qxts <- as.xts(as.data.table(q))