Re: [R] binary AND operators in R

2009-03-29 Thread Duncan Murdoch
mau...@alice.it wrote: I cannot find any R function or operator that performs a binary AND operation, as performed by Fortran built-in function "iand". Ideally either R operator "&" or "&&" should do that. But some tests proved they do not: R doesn't have an operator like iand built in, bu

Re: [R] binary AND operators in R

2009-03-29 Thread Wacek Kusnierczyk
mau...@alice.it wrote: > I cannot find any R function or operator that performs a binary AND > operation, as performed by Fortran built-in function "iand". > Ideally either R operator "&" or "&&" should do that. But some tests proved > they do not: > they do not, it seems clear from the docum

Re: [R] binary AND operators in R

2009-03-29 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of mau...@alice.it > Sent: Sunday, March 29, 2009 12:23 PM > To: r-help@r-project.org > Subject: [R] binary AND operators in R > > I cannot find any R function or operator that perf

Re: [R] binary AND operators in R

2009-03-29 Thread Domenico Vistocco
You should find the functions: bitAnd, bitOr and bitXor in the bitops package. Ciao, domenico mau...@alice.it wrote: I cannot find any R function or operator that performs a binary AND operation, as performed by Fortran built-in function "iand". Ideally either R operator "&" or "&&" should d