Which Of The Following Code Extracts 1st Element Of The 2nd #292
Which of the following code extracts 1st element of the 2nd element?</p> <pre><code class="language-rsplus"> > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81)) </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.2.
Which of the following code extracts 1st element of the 2nd element?
> x <- list(a = list(10, 12, 14), b = c(3.14, 2.81))
x[[c(2, 1)]]
x[[c(1, 2)]]
x[[c(2, 1,1)]]
x[[(2, 2,1)]]