This is my first post in this forum. I seek advice from the learned members of this community. I am a new and inexperienced user to the R language.
My goal: Generate a forecast using holt winters model for around 50 items. Each item has last 2 years data on a weekly basis.
I will take only those items where the sales qty is big (like 30, 40 a week and not 2,3,5 units a week) so that I get a trend from the data.
Input: I have the sales data in excel, both item ID, sales qty, time frame as week (can be done in days as well).
I have a particular set of code, which my predecessor used here, who is longer associated with the firm.
However, the code is not running and I am not sure about the bug as well.
Here is the code snippet. Any help will be appreciated. TIA.
PS: Not able to add the R code here, every time it shows,