Question: Question 2 Write your code and edit as follows CoinThrow 2 - sample ( c ( 0 , 1 ) , 1 0 0 ,

Question 2
Write your code and edit as follows
CoinThrow2-sample(c(0,1),100, replace=TRUE)
CoinThrow2
cumsum(CoinThrow2)
table(CoinThrow2)
Relfreq-cumsum(CoinThrow2)/length(CoinThrow2)
num-1:100
plot(num, Relfreq)
plot(num, Relfreq, type="o")
Comment on each R code using R # or Markdown report or write an accompanying note in R Markdown about what each code does.
Question 2 Write your code and edit as follows

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 Programming Questions!