I'm on Win7 32bit, and I know this probably has something to do with some Windows limitation, but I don't really understand it. I was working with a column of 20-digit ID numbers in a dataframe, and my results weren't what I expected... several frustrating hours later I realized R had messed up my 20-digit ID numbers in a very subtle way:
Type a 16 digit number in R:
> 1234567890123456
[1] 1234567890123456
Looks pretty normal. Now try a 20 digit number:
> 12345678900123456789
[1] 12345678900123457536
Notice the last 4 digits, 6789, have now turned into 7536... No warning message or anything.
Luckily, I'm not doing any arithmetic with these numbers so I just re-read them in as characters and everything was fine. But I'd still like to understand why R behaves like this. Thanks.