I am a little confused by the printing behavior of very large numeric numbers in R. Here is what I mean:
var1 = 122999998888
var1
[1] 1.23e+11
var2 = 123993239544
var2
[1] 123993239544
var1 < var2
[1] TRUE
It seems that it can not print a smaller numeric number exactly what it is as a larger one. How could this be?
class(var1)
[1] "numeric"
class(var2)
[1] "numeric"
Can somebody help illustrate this problem? This can be problematic if there are some large IDs represented as large numbers and when I read them in and write out as numeric data type, the ID will be different.