Skip to content
Back to formatted view

Raw Message

Message-ID: <48F9697A-77C3-4C8B-B91C-FEC6C7BE5E43@comcast.net>
Date: 2011-01-30T20:16:07Z
From: David Winsemius
Subject: bit wise operation on long bit vector?
In-Reply-To: <AANLkTi=6UnmrpY3wrpNJUBXJD1-G7ZAaAUmkXiuC5Jag@mail.gmail.com>

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