How do I split number string with digit pattern?
I just did this-

&gt; library(stringr)
&gt; x &lt;- c("-26755.22-50150.60")
&gt; matc = "\\-[0-9]*\\.[0-9]{2}"
&gt; as.numeric(unlist(str_match_all(x, matc)))
[1] -26755.22 -50150.60


After this, you can select the numbers by using respective indexes.