Suppose I have a dataset as follows:
ID Col1 Col2 Col3 Value
1 2 5 6 100
2 32 42 999
and I want to create a data set as follows:
ID Col Value
1 2 100
1 5 100
1 6 100
2 32 999
2 42 999
what would be the best way to go about doing this? Note, I have a missing value for Col3 in my original dataset, so I would only want to create new rows where there are no missing values in the columns.