A

Admin • 833.24K Points
Coach

Q. 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)]]
  • (B) x[[c(1, 2)]]
  • (C) x[[c(2, 1,1)]]
  • (D) x[[(2, 2,1)]]
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category R Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.