Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
The function determines if contestant has won or lost depending on whether the contestant changed his pick or stayed with original pick.
1 | determine_winner(final.pick, game)
|
... |
arguments used are (final.pick,game) |
The if function is used to further demonstrate that if contestant's final pick whether he changes his pick or not is car , he will win and if contestant's final pick was 'goat' he will lose.
The function returns a WIN or 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.