Vidyalelo
R Programming · Q31

Data Visualization with ggplot2

Programming · R Programming · question 31

Q31

Which of the following code create n samples of size "size" with probability prob from the binomial?

A.
z <- rinom(n,size,prob)
B.
z <- rbinom(n,size,prob)
Answer
C.
z <- binom(n,size,prob)
D.
z >- nom(n,size,prob)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board