[R] very long integers

Rory.WINSTON at rbs.com Rory.WINSTON at rbs.com
Thu Dec 11 18:19:59 CET 2008

Have you looked at the R interface to gmp?


Rory Winston
RBS Global Banking & Markets
Office: +44 20 7085 4476

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Aaron Robotham
Sent: 11 December 2008 17:07
To: r-help at r-project.org
Subject: [R] very long integers

A quick question really:

I have a database with extremely long integer IDs (eg 588848900971299297), which is too big for R to cope with internally (it appears to store as a double), and when I do any frequency tables erroneous results appear. Does anyone know of a package that extends internal storage up to LONG, or is the only solution to read it in as a character from the original data?

In case anyone is curious, I didn't create the IDs, and in some form I must conserve all of the ID information for later use.



R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 

This e-mail message is confidential and for use by the=2...{{dropped:22}}

More information about the R-help mailing list