Разница | и ||

# Operators & and | perform element-wise operation producing 
# result having length of the longer operand.
# But && and || examines only the first element of the operands 
resulting into a single length logical vector.
Gifted Gorilla