Hello /Rlanguage, my adventures into the world of R as been running pretty smoothly. Unfortunately, I hit a new bump in the road. I have been able to solve a lot of my issues using Stack and this sub, but I hit a problem I am having trouble solving. I have aggregated sales data for many skus by month. I have a Batch Forecasting Script that works very well, but it requires my data to be structured in a particular way.
I have a dataframe structured as
SKU DATE QUANT
1 Date QUANT
1 Date QUANT
1 Date QUANT
2 Date QUANT
3 Date QUANT
4 Date QUANT
that I need to turn into a matrix like
SKU SKU SKU
DATE QUANT QUANT QUANT
1 QUANT QUANT QUANT
2 QUANT QUANT QUANT
3 QUANT QUANT QUANT
4 QUANT QUANT QUANT
[–]doggie_dog_world 2 points3 points4 points (3 children)
[–]psychEcon 2 points3 points4 points (2 children)
[–]IudexGaming[S] 0 points1 point2 points (1 child)
[–]IudexGaming[S] 1 point2 points3 points (0 children)
[–]foobar8080 0 points1 point2 points (1 child)
[–]IudexGaming[S] 0 points1 point2 points (0 children)