Description Usage Arguments Value Examples
View source: R/play_game_loop.R
Monty Hall game where user defines number of goats and cars which is run N times
1 | play_game_loop(goats, cars, N = 10000)
|
goats |
Numer of goats that will be hidden behind doors. |
cars |
Number of cars that will be hidden behind doors. |
N |
Number of loops of the play_game() function. |
... |
further arguments passed to or from other methods. |
The number of goats added to the number of cars makes the total number of doors to choose from. N is then how many simulations it will run. N*2 is the number of datapoints in the dataframe.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.