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.