What is the purpose of the str() function versus the summary() function in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explain the difference between the str() and summary() functions in R and what each prints for a data frame or a fitted model. Tests practical familiarity with inspecting new data and model objects in R before an analysis.