What is the difference between ==, identical(), and all.equal() in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how the R comparisons ==, identical() and all.equal() differ in what they return, how strict they are, and how they handle floating-point values, types, attributes and NA. It tests choosing the right comparison for if conditions, unit tests and element-wise filters.