Description Usage Arguments Details Value Examples
change_door ()
CHANGE DOORS.
1 | change_door(stay = T, opened.door, a.pick)
|
if |
arguments are used by the function. |
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.
The function returns the final pick of the door whether to Stay or Switch.
1 | change_door ()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.