Using R, Hyndman's Prediction Pack and Quantum

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

+3
source share
1 answer

, xts (c("xts","zoo")) ets, , .

- :

any(class(y) %in% c("data.frame","list","matrix","mts"))

, , , , .

+3

All Articles