Using a loop create a matrix in R of 10 rolls all consisting of 5 dice in each roll. Then, rewrite your code in R to avoid using a loop. Annotate your code.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 4MQ4
icon
Related questions
Question

Using a loop create a matrix in R of 10 rolls all consisting of 5 dice in each roll.

Then, rewrite your code in R to avoid using a loop.

Annotate your code.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning