What is the difference between & and && (and | and ||) in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how the single and double logical operators in R (& versus && and | versus ||) differ. Tests vectorized versus scalar evaluation, short-circuiting in if conditions, handling of missing values, and the stricter checks added in recent R versions.