Skip to content
Prev 29035 / 63421 Next

Reading an "unsigned long long" using R readBin()

Well, R has no unsigned quantities, so ultimately you can't actually do 
this.  But using what="int" and an appropriate 'size' (likely to be 8)
shold read the numbers, wrapping around very large ones to be negative.
(The usual trick of storing integers in numeric will lose accuracy, but 
might be better than nothing.)
On Thu, 29 May 2008, Sean Davis wrote: