I have a data set containing two columns:
Quantity SKU
1,1 2494008,2493953
1,1,1 2167550,1336380,2365409
3,2,1,6,1 1428608,1137956,2401393,2679310,2579183
End state is a data set that looks like this:
Quantity SKU
1 2494008
1 2493953
1 2167550
1 1336380
1 2365409
3 1428608
2 1137956
1 2401393
6 2679310
1 2579183
cplit and strsplit work if you want to split on a single variable as shown here, but I need to split on two vars (Quantity and SKU from above).