Decomposition Error

I am trying to use decomposition and I keep receiving an error message.

decomposition_p1 <- decomp(data_p1,decomposition = "auto",outplot = TRUE)

Error in decomp(data_p1, decomposition = "auto", outplot = TRUE) :
Seasonality not defined (y not ts object).

Any ideas?

It's hard to say without seeing your data. The error message says that y has to be a ts (timeseries) object. I think the zoo package has tools to make a dataframe into a ts object.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.