Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
'determine_winner()' determines the contestant is a winner if their final pick is a "car" door.
1 | determine_winner(final.pick, game)
|
... |
no arguments are used by the function. |
The function uses inputs 'final.pick' and 'game' to determine if the contestant is a winner.
If the character vector for 'final.pick' is a "car" door, the function returns "WIN". If 'final.pick' is "goat", the function returns "LOSE".
1 | determine_winner(final.pick, game)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.