[R] bit wise operation on long bit vector?

David Winsemius dwinsemius at comcast.net
Sun Jan 30 21:16:07 CET 2011


On Jan 30, 2011, at 2:51 PM, Fahim M wrote:

> Hi
> Is there any function to do bitwise or/and/xor on long bit vectors?
>
> "aaaaa"
> "0000000000000000000000000000000000000000000000000000000000000000
> ......................"
> "bbbbb"
> "0000000000000000000000000000001000000000000100000000100000001100
> ......................"
> "ccccc"
> "000000000000000000000000000000000000000000000000000000000000000000000000000
> ..."
> "dddddd"
> "0000000000000000000000000000000000000000000000000000000000000000000000000000
> .."
>

The Logical functions have a bitwise interpretation for objects of  
type "raw".

?as.raw
??base::Logic

>

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list