1

Which of the following code extracts 1st element of the 2nd element? > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81))

Correct Answer: x[[c(2, 1)]]

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: Which of the following code extracts 1st element of the 2nd element? > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81)) | Extra Education