Darren's R Top Tips!
The difference between && and & AND and || and | OR is that the single-symbol forms are vectorised. E.g.
c(1,1,0,0) & c(1,0,1,0)
The operator ! is also vectorised. For bitwise operators, you need e.g.
bitwAnd(35,7)
The difference between && and & AND and || and | OR is that the single-symbol forms are vectorised. E.g.
c(1,1,0,0) & c(1,0,1,0)
The operator ! is also vectorised. For bitwise operators, you need e.g.
bitwAnd(35,7)
Comments