Not sure what I'm doing wrong here. I run the following code in R:
require(quantmod)
require(forecast)
getSymbols('FAGIX', from='2001-01-06', to=Sys.Date())
y <-Ad(FAGIX)
plot(forecast(y))
It seems to partially work, but I get a warning. In addition, the plot no longer shows the date. There is probably a simple solution, but I do not see it.
Warning message: In if (class (y) == "data.frame" | class (y) == "list" | class (y) ==: the condition has a length> 1 and only the first element will be used
source
share