SyntaxFix
Write A Post
Hire A Developer
Questions
Read this thread R - boolean operators && and ||.
Basically, the & is vectorized, i.e. it acts on each element of the comparison returning a logical array with the same dimension as the input. && is not, returning a single logical.
&
&&