Have you looked at the R interface to gmp?

http://cran.r-project.org/web/packages/gmp/index.html


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

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Robotham
Sent: 11 December 2008 17:07
To: r-help@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.

Thanks,

Aaron

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
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}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to