Q. What will be the output of the following R code?
> x <- matrix(1:6, 2, 3)
> x[1, , drop = FALSE]

  • (A) [,1] [,2] [,3] [1,] 1 3 5
  • (B) [,1] [,2] [,3] [1,] 2 3 5
  • (C) [,1] [,2] [,3] [1,] 1 2 5
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) [,1] [,2] [,3] [1,] 1 3 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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