πŸ“Š R Programming
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)]]
πŸ’¬ Discuss
βœ… Correct Answer: (A) x[[c(2, 1)]]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
133
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate