I would like to decompose a time series. It contains of weekly data for 8 years.
I need it to be decomposed so I can look at it without the seasonality or trend but I just started with R and have no idea what to do. I tried it like that:
but if I do so R tells me, that my time series has none or less than two periods.
I loaded the data from an excel file. Maybe I did something wrong there? How do I have to put the data in my excel file so R knows it is an time series with 416 weeks?
Thanks for your help.
I have some other additional questions now.
I would like to look at just a part of the data. Can I specify in the plot function that I for example only want data from 2013 to be plotted.
And if I plot the function it only shows the years on the x-axis. Is it possible that it for example also shows the months on the axis? How can I do that?
Thanks in advance!