Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem (4).R
change_door( stay=T, opened.door, a.pick )
generates the option given to
the contestant to change from their initial selection to the other door
that still remains closed.
1 | change_door(stay = T, opened.door, a.pick)
|
... |
Based on the game playing strategy stay=TRUE or stay=False will be assigned. |
The contestant is now granted a chance to change from his/her initial selection to the door that still remains closed. Contestant must now decide if they wish to stick with original selection, or change to the remaining unopened door.
The function returns a length 3 character vector indicating a number between 1 and 3, this will indicate a final pick made by the contestant.
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.