Hi. This is a simple question but somehow I cant figure out the code. I want to transform the following dataset:
Into this format:
I have looked at the vlookup package and have tried merging but to no avail.
Code:
input id1 volume_productx id2 volume_producty 1 100 2 150 2 300 4 400 3 50 2 150 4 600 5 400 5 200 3 250 end
Code:
input id1 volume_productx volume_producty 1 100 . 2 300 150 3 50 250 4 600 400 5 200 400 end
Comment