πŸ“Š R Programming
Q. What will be the output of the following R code?
> x <- list(a = matrix(1:4, 2, 2), b = matrix(1:6, 3, 2))
> lapply(x, function(elt) { elt[,1] })
  • (A) $a [1] 1 2 $b [1] 1 2 3
  • (B) $a [1] 1 2 3 $b [1] 1 2 3
  • (C) $a [1] 1 2 3 $b [1] 1 2
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) $a [1] 1 2 $b [1] 1 2 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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