What Will Be The Output Of The Following R Functionp Pre #119
What will be the output of the following R function?</p> <pre><code class="language-rsplus">d <- diag(5, nrow=2, ncol=2) d</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 Getting Started - Console Input and Evaluation - Quiz No.1.
What will be the output of the following R function?
d <- diag(5, nrow=2, ncol=2) d
5 1 0 5
5 0 5 5
5 0 15 5
5 0 0 5