Using Lists in R
Instruction: Create a list in R containing a numeric vector, a character vector, and a matrix. Write a script that extracts and prints the matrix from the list.
Context: This question tests the candidate's understanding of lists in R, which are important data structures for organizing and managing diverse datasets. It also examines the candidate’s ability to manipulate and access data stored in complex structures.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
To start, let's construct the list as per the instruction. We'll call our list myList...