1

What will be the output of the following R code? > m <- matrix(1:4, nrow = 2, ncol = 2) > dimnames(m) <- list(c("a", "b"), c("c", "d")) > m

Correct Answer: c d a 1 3 b 2 4

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: What will be the output of the following R code? > m dimnames(m) m | Extra Education