[Rd] How to handle INT8 data
gmbecker at ucdavis.edu
Fri Jan 20 16:19:14 CET 2017
I am not on R-core, so cannot speak to future plans to internally support
int8 (though my impression is that there aren't any, at least none that are
close to fruition).
The standard way of dealing with whole numbers too big to fit in an integer
is to put them in a numeric (double down in C land). this can represent
integers up to 2^53 without loss of precision see (
This is how long vector indices are (currently) implemented in R. If it's
good enough for indices it's probably good enough for whatever you need
Hope that helps.
On Fri, Jan 20, 2017 at 6:33 AM, Nicolas Paris <nicolas.paris at aphp.fr>
> Hello r users,
> I have to deal with int8 data with R. AFAIK R does only handle int4
> with `as.integer` function . I wonder:
> 1. what is the better approach to handle int8 ? `as.character` ?
> `as.numeric` ?
> 2. is there any plan to handle int8 in the future ? As you might know,
> int4 is to small to deal with earth population right now.
> Thanks for you ideas,
> int8 eg:
> 1. https://www.r-bloggers.com/r-in-a-64-bit-world/
> Nicolas PARIS
> R-devel at r-project.org mailing list
Gabriel Becker, PhD
Associate Scientist (Bioinformatics)
[[alternative HTML version deleted]]
More information about the R-devel