I have this value in character:
val <- "1e-14105"
What I want to do is to convert them into numeric and preserve the scientific notation. So the result is simply 1e-14105
as number.
I tried this but failed:
> as.numeric(val)
[1] 0
> format(as.numeric(val), scientific=TRUE)
[1] "0e+00"
What's the right way to do it?