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:
Try the following
q$t<-as.xts(q, order.by = as.Date(q$t), dateFormat="POSIXct")