Seems like R coerces big numbers and cannot compare them effectively:
x = 123412415124231251233213
x == 123412415124231251233214
[1] TRUE
x == 123412415124231251233217
[1] TRUE
Any idea why (maybe a C limitation) and how can that be fixed ?
And look what happens if I convert to character:
x <- as.character(123412415124231251233213)
x
[1] "123412415124231247898884"