How can I work with bitsets in R? I googled and found bit
and pack
packages but I'm not sure it's what I need. I have big raw
object that is loaded from DB which is array of bytes. I want to access it as if it was bitset to have following operations
- count set bits;
- iterate through set bits in
foreach
loop; - set and unset individual bits.
I can probably just convert raw
to array of bytes (don't know to do that yet btw) and do everything I described using bitwise operators but perhaps some existing package already has that ?