Vidyalelo
R Programming · Q88

Data Structures in R Programming

Programming · R Programming · question 88

Q88

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))

A.
x[[c(2, 1)]]
Answer
B.
x[[c(1, 2)]]
C.
x[[c(2, 1,1)]]
D.
x[[(2, 2,1)]]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board