[R] How to read a binary file bit by bit?

Inigo Pagola Barrio ipagola at cener.com
Fri May 29 11:12:07 CEST 2009


Hello everybody,

I am trying to a read a binary file with different formats. I use the readBin function so I can read bytes, short and double numbers depending on the bytes per element in the byte stream. But now I need to read bit by bit, and join them in groups of ten because every ten bits will form a number. How can I do this?

Regards,

_____________________________________________________________________
Iñigo Pagola
Solar Thermal Energy Deparment
CENTRO NACIONAL DE ENERGÍAS RENOVABLES




More information about the R-help mailing list