Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I specify certain bits a integer taken in R?

Tags:

r

I have a bunch of numbers to load into R for further anaysis. The numbers are small, <128. But there're 4G of such numbers. I would like to load them into a vector. Could I specify certain bits a integer taken in R to reduce memory usage? Breaking down the data was the only choice?

like image 204
Gahoo Avatar asked Nov 12 '22 07:11

Gahoo


1 Answers

The ff CRAN package allows you to create vectors with 2,4,8,16 and 32 bit integers (signed or unsigned).

like image 137
f3lix Avatar answered Nov 15 '22 06:11

f3lix