Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
open_goat_door()
opens one of the doors that contains a
goat after the contestant has made their intial door choice.
1 | open_goat_door(game, a.pick)
|
game |
= the argument containing the positions of the goats and car from the create_game() function a.pick = the arguement containing the contestants initial door selection from the select_door() function |
After the contestant chooses a door in the "Let's Make a Deal" game show, Monty Hall will reveal one of the goat doors to the contestant.
The function returns a length 1 numeric vector indiciting whether the opened door containing the goat was door 1, 2, or 3. This function will not open the door with the car behind it or the door that was the contestants initial pick.
1 | open_goat_door( game, a.pick )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.