Question: Please help using R to answer this question: A person would like to reproducibly simulate 9 9 9 rolls of a fair six - sided

Please help using R to answer this question:
A person would like to reproducibly simulate 999 rolls of a fair six-sided die. He performs the following command.
rolls <- replicate(n =999,{
set.seed(1000)
sample(6,1)
})
What is the problem with this command? In your answer, you should first explain, and then secondly rewrite the command so that it properly reproducibly simulates 999 rolls of a fair six-sided die.I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!