What Will Be The Output Of The Following R Codep Pre Langrsplus #219
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > x <- list(1, "a", TRUE, 1 + 4i) > x </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.1.
What will be the output of the following R code?
> x <- list(1, "a", TRUE, 1 + 4i) > x
[[1]] [1] 1 [[2]] [1] "a" [[3]] [1] TRUE [[4]] [1] 1+4i
[[1]] [1] 2 [[2]] [1] "b" [[3]] [1] TRUE [[4]] [1] 1+4i
[[1]] [1] 3 [[2]] [1] "a" [[3]] [1] TRUE [[4]] [1] 1+4i
[[1]] [1] 77 [[2]] [1] "a" [[3]] [1] False [[4]] [1] 1+5i