Question: Need some help explaining an R based Question One way to generate random bits is by using a function called sample() in R In the
Need some help explaining an R based Question
One way to generate random bits is by using a function called sample() in R

In the RStudio Window go to the Session tab and and click on New Session . This opens up a new RStudio Window. In the command line in this window, type in ?sample . This will open up the help file for the sample() function. Study its usage Run the command example( sample) in the codeblock below to look at some examples of its usage. Code Start Over Run Code example (sample) Can you think of a way to use sample to generate a random sequence of 1000 bits using sample? (1 mark) Code Start Over Run Code 1 #use the correct function variables to generate your sequence p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
