Q. In R, how is a matrix created using the matrix() function?

  • (A) matrix(1:9, nrow = 3, ncol = 3)
  • (B) create.matrix(1:9, rows = 3, columns = 3)
  • (C) [1, 2, 3; 4, 5, 6; 7, 8, 9]
  • (D) mat(1:9, 3, 3)
πŸ’¬ Discuss
βœ… Correct Answer: (A) matrix(1:9, nrow = 3, ncol = 3)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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