A

Admin • 833.24K Points
Coach

Q. What will be the output of the following R function?
ab <- list(1, 2, 3, "X", "Y", "Z")
dim(ab) <- c(3,2)
print(ab)

  • (A) 1 "X" 2 "Y" 3 " Z"
  • (B) 1 "X" 2 "Y" 3 " Y"
  • (C) 1 "W" 2 "Y" 3 " Z"
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category R Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.