[R-SIG-Finance] Error when Using fPortfolio to plot the fitting
曹鼎贤
caodingxian at 163.com
Tue Mar 17 08:31:33 CET 2015
Dear All,
I was learning using the package fPortfolio by the ebook Portfolio Optimization. When I was using the function to print the fitting result which is completely the same as that in the book, there was an error report as follows:
>library(fPortfolio)
> fit <- assetsFit(LPP2005.RET[, 1:3], method = "st")
Warning Messages£º
In whichFormat(charvec[1]) :
character string is not in a standard unambiguous format
> plot(fit,1)
Error at as.double(x) :
cannot coerce type 'S4' to vector of type ¡®double¡¯
The correct result should be a group of picture to show the effect of fitting. Could anyone give me some instructions? THANK YOU.
Best Regards,
Cao Dingxian
[[alternative HTML version deleted]]
More information about the R-SIG-Finance
mailing list