I read
http://stat.ethz.ch/R-manual/R-devel/library/base/html/Logic.html
and the difference between and and && does not make sense. For example:
> c(1, 2, 3) & c(1,2,3)
[1] TRUE TRUE TRUE
According to the link, this is the expected behavior. It performs an elemental comparison of two vectors.
So, I'm testing again ...
> c(1, 2, 3) && c(1,2,3)
[1] TRUE
This also returns the expected.
But then I change the meaning ...
> c(1, 2, 3) && c(1,3,3)
[1] TRUE
Still expected because these are short circuits on the first element.
> c(1, 2, 3) & c(1,3,3)
[1] TRUE TRUE TRUE
This, however, lost me. These two vectors should not be equal.