Which of the following R code will print the following result? [code] [[1]] [1] 2.263808 [[2]] [1] 1.314165 9.815635 [[3]] [1] 3.270137

Which of the following R code will print the following result?
Code:
[[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
A.
Code:
> x <- 1:4
> lapply(x, runif, min = 0, max = 10)
B.
Code:
> x <- 1:4
> lapply(x, runif, min = 0, max = 9)
C.
Code:
> x <- 1:3
> lapply(x, runif, min = 0, max = 10)
D.
Code:
> x <- 1:4
> lapply(x, runif, min = 0, max = 6)
 

Tìm kiếm

Back
Top