Instruction: Discuss the structural and functional differences between a data.frame and a matrix in R.
Context: This question assesses the candidate's understanding of core data structures in R and their appropriate use cases.
easy