What Will Be The Output Of The Following R Codep Pre Langrsplus #531
What will be the output of the following R code?</p> <pre><code class="language-rsplus"> > set.seed(10) > x <- rbinom(100, 1, 0.5) > str(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 Profiling, Simulation and Data Analysis - Simulation - Quiz No.2.
What will be the output of the following R code?
> set.seed(10) > x <- rbinom(100, 1, 0.5) > str(x)
int [1:100] 1 0 0 1 0 0 0 0 1 0 ...
int [1:100] 10 0 01 1 0 0 01 0 1 0 ...
int [1:100] 1 03 0 1 0 0 0 02 1 0 ...
int [1:100] 1 2 3 1 1 0 0 0 1 0 ...