I have a dataset that looks like this:
C1 C2
A,B,C 1
A 2
D,A 3
I want to transform this to:
C1 C2
A 1
B 1
C 1
A 2
D 3
A 3
I currently have no idea as to how to proceed or even exactly what to search for. I had been trying to formulate something using data.table
but could not achieve anything remotely useful. Please advise on how this can be achieved.
To Mods: Please merge with similar questions if you can find any. I couldn't find any but strongly suspect this to be a fairly common question.