πŸ“Š R Programming
Q. In R, how is a matrix initialized with values 1 to 9 arranged in three rows?
  • (A) matrix(1:9, nrow = 3, ncol = 3)
  • (B) matrix(c(1, 2, 3, 4, 5, 6, 7, 8, 9), 3, 3)
  • (C) matrix(1:9, rows = 3, cols = 3)
  • (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

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