What will be the output of the following R code?
> set.seed(10)
> x <- rbinom(100, 1, 0.5)
> str(x)
> set.seed(10)
> x <- rbinom(100, 1, 0.5)
> str(x)
A. int [1:100] 1 0 0 1 0 0 0 0 1 0 ...
B. int [1:100] 10 0 01 1 0 0 01 0 1 0 ...
C. int [1:100] 1 03 0 1 0 0 0 02 1 0 ...
D. int [1:100] 1 2 3 1 1 0 0 0 1 0 ...
Answer: Option A
Join The Discussion