[R-sig-finance] getReturns in fMultivar

ManojW manojsw at gmail.com
Thu Jun 2 06:38:12 CEST 2005


A quick debug of getReturns reveal that the function returnSeries has some
"issues"  handling vector data. As a stop gap arrangement, you can try to
invoke getReturns by casting the data as a timeSeries obejct.

Hope that helps.

Manoj


----- Original Message ----- 
From: "Sanjun Chen" <sanjun.chen at gmail.com>
To: <r-sig-finance at stat.math.ethz.ch>
Sent: Thursday, June 02, 2005 1:04 PM
Subject: [R-sig-finance] getReturns in fMultivar


> Hi,
> I got the following message when I used the getReturns in the
> fMultivar package. (it worked fine in previous version of fSeries).
>
> >         data(EuStockMarkets)
> >         dax = log(EuStockMarkets[, "DAX"])
> >         plot(getReturns(dax))
> Error in ans[-1, ] : incorrect number of dimensions
>
>
> Appreciate any help.
>
> Thanks.
>
> Sanjun Chen
>
> _______________________________________________
> R-sig-finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance



More information about the R-sig-finance mailing list