Which Of The Following R Code Will Print The Following Resultp #494
Which of the following R code will print the following result?</p> <pre><code class="language-rsplus"> [[1]] [1] 2.263808 [[2]] [1] 1.314165 9.815635 [[3]] [1] 3.270137 5.069395 6.814425 [[4]] [1] 0.9916910 1.1890256 0.5043966 9.2925392 </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 Control Structures, Functions, Scoping Rules, Loop Functions and Debugging - Loop Functions - Quiz No.2.
Which of the following R code will print the following result?
[[1]] [1] 2.263808 [[2]] [1] 1.314165 9.815635 [[3]] [1] 3.270137 5.069395 6.814425 [[4]] [1] 0.9916910 1.1890256 0.5043966 9.2925392
> x <- 1:4 > lapply(x, runif, min = 0, max = 10)
> x <- 1:4 > lapply(x, runif, min = 0, max = 9)
> x <- 1:3 > lapply(x, runif, min = 0, max = 10)
> x <- 1:4 > lapply(x, runif, min = 0, max = 6)