Which Of The Following R Code Extracts The Second Column For #283
Which of the following R code extracts the second column for the following matrix?</p> <pre><code class="language-rsplus"> > x <- matrix(1:6, 2, 3) </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 R - Data Storage, Formats, Objects and Operations - Subsetting - Quiz No.1.
Which of the following R code extracts the second column for the following matrix?
> x <- matrix(1:6, 2, 3)
x[2, ]
x[1, 2]
x[, 2]
x[1 1 2]