What is the difference between an integer and a double in R, and what does the L suffix do?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain how integers and doubles differ in R and what the L suffix on a number literal does. Tests knowledge of R storage types, typeof versus class, type promotion in arithmetic, integer overflow and the memory trade-off between the two types.