Is there a way to prevent as.character
from using exponential notation? For example, I have
num <- c(9999999, 10000000)
char <- as.character(num)
char
[1] "9999999" "1e+07"
But instead I would like to have char
be "9999999" "10000000"
. Thanks!
options(scipen...)
rather than a formatting issue – Elusive