If I want to convert the following data.frame:
>M
name ID
a 1
b,c 2
d,e 3
f 4
to this one:
>M
name ID
a 1
b 2
c 2
d 3
e 3
f 4
How can I do this conversion for all elements of the first column?
Thanks