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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Nameeta Lobo
> Sent: Friday, May 12, 2006 9:42 AM
> To: [email protected]
> 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}}

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to