play_game_orig_loop: The original Monty Hall game run N times

Description Usage Arguments Value Examples

View source: R/play_game_orig_loop.R

Description

The original Monty Hall game run N times

Usage

1

Arguments

N

Number of loops of the play_game() function.

...

further arguments passed to or from other methods.

Value

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.

Examples

1
2
3
4
5
## Monty Hall Problem with 2 goats, 1 car, and run 100 times.
play_game(N = 100)

## Monty Hall run the standard 10,000 times.
play_game()

ndavis4904/montyhall documentation built on Dec. 22, 2021, 12:07 a.m.