Who knew? I thought the difference between &
and &&
for ANDing logical vectors in R was just that &
evaluated the whole expression while &&
started at the left and went right until it hit a FALSE
value. But there’s more. &
is vectorized, but &&
only considers the first value in a vector and only returns a single value.
Continue reading “Why is my logical && comparison producing NA?”