Why does this:
gsub("([0-9])+(e)+(-)","\\1^x10^\\3",eg)
Turn this:
eg<-5.4748554e-14
Into this:
5.4x10^-14
I want to make it this:
5.4748554x10^-14
Move + inside the parenthesis to make it a single first group match:
> gsub("([0-9]+)(e)+(-)", "\\1x10^\\3", eg)
[1] "5.4748554x10^-14"
>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With