Dear all,
I am working with the rugarch package which requires xts objects. I have 
installed the xts package to convert my dataset from .csv to a xts object but 
it does not work. My code looks as follows:

VaRxts <- as.xts(VaR,order.by ="Date")
Error in xts(x, order.by = order.by, frequency = frequency, .CLASS = "double",  
:
  order.by requires an appropriate time-based object

Could anyone help me with that? How can I create a xts object in R?

Thank you very much in advance.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to