change_door: Change Door

Description Usage Arguments Details Value Examples

View source: R/monty-hall-script.R

Description

Contestant has an option to change their door choice.

Usage

1
change_door(stay = T, opened.door, a.pick)

Arguments

None

Details

Since the host exposed which of the 2 doors with a goat by opening one of the doors, the contestant now has an option to change their initial pick.

Value

Contest will automatically either switch or stay with their initial pick.

Examples

1

voznyuky/montyhall documentation built on Dec. 23, 2021, 4:11 p.m.