Hello I am trying to convert number to integer in R but when a number is too large it is converted to NA, why? How can I avoid this problem?
just some example
>df[,2]
[1] 0 0 0 0 0 0 0 5361230 780600500 0 0 0
[13] 764111150 0 0 0 0 9999816350 0 23237410347 91198500 1957077150 124890245 64232150
>as.integer(df[,2])
[1] 0 0 0 0 0 0 0 5361230 780600500 0 0 0
[13] 764111150 0 0 0 0 NA 0 NA 91198500 1957077150 124890245 64232150
I would like to mantain the NA as the original number is it possible? thanks