[R-SIG-Finance] returns/timeSeries error message

J Konnonen jkonn2001 at yahoo.com
Tue Nov 25 10:16:00 CET 2008


Hello,

I am trying to use some libraries (e.g. fGarch, fTrading) that require the library timeSeries. However, my code produces the following error message after loading the libraries

>     data(x)
>     f <- returns(window(x, from="1992-01-01", to="2003-12-31"))
Error in getDataPart(<S4 object of class "timeSeries">) : 
  no '.Data' slot defined for class "timeSeries"

This code part worked without problems before using timeSeries

I couldn't figure out what could be the problem here. Any help would be very much appreciated.

Regards,
/Johan



More information about the R-SIG-Finance mailing list