What is the difference between print() and cat() in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Compare the print() and cat() functions in R: how each one formats output, what each returns, and which objects each can display. Tests practical R knowledge of generic functions, auto-printing at the console and writing clean text output from scripts.