I have a dataframe as such:
Col1 Col2
a 2
b 1, 3
c 4
I want to duplicate the second row so that in Col2, there is only one of the elements. For example,
Col1 Col2
a 2
b 1
b 3
c 4
I think I would have to use strsplit()
but I'm not entirely sure how I'd implement this.