[R] bitwise addition
Berton Gunter
gunter.berton at gene.com
Fri May 12 20:55:17 CEST 2006
Not clear from your message what you want, but maybe try:
expand.grid(c(0,1),c(0,1),c(0,1))
-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Nameeta Lobo
> Sent: Friday, May 12, 2006 9:42 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] bitwise addition
>
>
>
> Hello all again,
>
> I want to do bitwise addition in R. I am trying to generate a matrix
> 0000
> 0001
> 0010
> ....
> ....
> 1111
>
> I know the other ways of generating this matrix but I need to
> look at bitwise
> addition.
>
> Any suggestions???
>
> thanks a lot
>
> Nameeta
>
>
>
> -------------------------------------------------
> This email is intended only for the use of the individual\...{{dropped}}
More information about the R-help
mailing list