Sail E0 Webinar
Question
What will be the output of the following code
set.seed(10) x - rbinom(100, 1, 0.5) str(x)
Options:
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


Graph of x can be plotted using plot function.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers