I am new to bioinformatics and R. I have a data frame that has three columns and looks like this:
                          name   X   Y
1                         4052 153 302
2                         7057  80 279
3                         8454 466 266
4                         9978 466 249
5          3397 3398 3399 3400 769 142
6                    1874 1875 723 325
Now in the name column these are gene IDs and for the fifth row there are 4 gene ids together. I want to separate them, add them to the dataframe as a separate row with the same X and Y. same is the case with row 6. So i want the output to be like this
                      name   X   Y
1                         4052 153 302
2                         7057  80 279
3                         8454 466 266
4                         9978 466 249
5                         3400 769 142
6                         1875 723 325
7                         3399 769 142
8                         3398 769 142
9                         3397 769 142
10                        1874 723 325