For manipulating ID's that are given as character I tried the following:
> a <- "603144790381830143"
> as.numeric(a)
[1] 6.031448e+17
> as.character(as.numeric(a))
[1] "603144790381830144"
I use:
R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
Now needless to say this is unexpected behaviour (for me). Is there something I should be aware of in handling doubles?