1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Defensive R Programming

Connected

अभ्यास

Using message in practice

We're going to keep using the simulate() function, which performs a Monte-Carlo simulation. Often these simulations are time consuming, so it is helpful to give a progress report to the user. For example:

Simulation 1 complete
Simulation 2 complete

निर्देश 1/3

undefined XP
    1
    2
    3
  • Alter the sample code below to show a progress report identical to the one suggested above.