geoffjentry / twitteR

R based twitter client
http://cran.r-project.org/web/packages/twitteR/index.html
254 stars 164 forks source link

Fixes #119 parsing of UIDs > 2^53 #122

Closed chlorenz closed 8 years ago

chlorenz commented 8 years ago

For integers bigger than 2^53 as.numeric() generally loses precision: http://stackoverflow.com/questions/1848700/biggest-integer-that-can-be-stored-in-a-double E.g. users <- "9007199254740993" # 2^53+1 Then !is.na(numUsers) is TRUE but users also appears in setdiff(users, uids), because numUsers != users.