Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
Contestant has the choice to switch or stay with original choice of the door.
1 | change_door(stay = T, opened.door, a.pick)
|
... |
arguments are ( stay=T, opened.door, a.pick ) |
The contestant is given the option to change from their initial selection to the other door that is still closed. The function will represent the game-playing strategy as the argument stay=TRUE or stay=FALSE. After host opens one of the doors that is not what the contestant picked nor the car door the contestant has the choice of switching to the other door.
The function returns a length 1 numeric vector.
1 | change_door( stay=T, opened.door, a.pick )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.