change_door: Select final door.

Description Usage Arguments Details Value Examples

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

Description

'change_door()' allows contestants to change their original door selection.

Usage

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

Arguments

The

paramaters for this function are stay, opened.door, and a.pick.

Details

This function determines whether stay is true or false.

Value

The function returns a number from 1-3 that is the value of the final picked door.

Examples

1

castower/montyhall documentation built on March 1, 2020, 12:16 a.m.