Description Usage Arguments Details Value Examples
View source: R/newscriptmontyhall.R
change_door()generates a number of the door that the contestant choses if he made a decision to switch doors.
1 | change_door(stay = T, opened.door, a.pick)
|
... |
a logical vector whether the contestant chooses to stay or change his initial selection. |
The contestant is given the option to change from their initial selection to the other door that is still closed.
The function returns a door number which is between one and three.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.