What Will Be The Output Of The Following R Codep Pre Langrsplus #233
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > m <- matrix(1:4, nrow = 2, ncol = 2) > dimnames(m) <- list(c("a", "b"), c("c", "d")) > m </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs110 R Language. It can also be found in gs gs110 Nuts and Bolts and Getting Data In and Out - Reading Datasets - Quiz No.2.
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
c d a 1 3 b 2 4
c d a 1 2 b 2 3
c d a 1 3 b 4 2
Error