Hi Is there any function to do bitwise or/and/xor on long bit vectors? "aaaaa" "0000000000000000000000000000000000000000000000000000000000000000......................" "bbbbb" "0000000000000000000000000000001000000000000100000000100000001100......................" "ccccc" "000000000000000000000000000000000000000000000000000000000000000000000000000..." "dddddd" "0000000000000000000000000000000000000000000000000000000000000000000000000000.." Thanks -- Fahim Mohammad Bioinforformatics Lab University of Louisville Louisville, KY, USA Ph: +1-502-409-1167 [[alternative HTML version deleted]]
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
Check out the 'bit' package on CRAN and see if that is what you are looking for. On Sun, Jan 30, 2011 at 2:51 PM, Fahim M <fahim.md at gmail.com> wrote:> Hi > Is there any function to do bitwise or/and/xor on long bit vectors? > > "aaaaa" > "0000000000000000000000000000000000000000000000000000000000000000......................" > "bbbbb" > "0000000000000000000000000000001000000000000100000000100000001100......................" > "ccccc" > "000000000000000000000000000000000000000000000000000000000000000000000000000..." > "dddddd" > "0000000000000000000000000000000000000000000000000000000000000000000000000000.." > > Thanks > > > > > > > > -- > Fahim Mohammad > Bioinforformatics Lab > University of Louisville > Louisville, KY, USA > Ph: ?+1-502-409-1167 > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Data Munger Guru What is the problem that you are trying to solve?