I have couple hundred of xml files with very simple structure:
NM_000016 3.87178e-09 3:7.8009e-248 14:1.1621e-262
NM_000018 5.49001e-12 9:1.06231e-154
NM_001032295 2.5366e-10 14:4.46519e-286 30:1.70136e-17 31:1.26709e-268
I want to convert them into csv files which is slightly different from the original one:
NM_000016 3.87178e-09 3 7.8009e-248 14 1.1621e-262
NM_000018 5.49001e-12 9 1.06231e-154
NM_001032295 2.5366e-10 14 4.46519e-286 30 1.70136e-17 31 1.26709e-268
The differences is: the ":" within "3:7.8009e-248"is deleted and the numbers"3" "7.8009e-248" are assigned to two columns.
How can I do it efficiently in R? Many Thanks!