select_door_orig: Randomly select a door based on the total number of goats and...

Description Usage Arguments Value Examples

View source: R/select_door.R

Description

Randomly select a door based on the total number of goats and cars.

Usage

1

Arguments

door.choices

Total number of doors to choose from.

...

further arguments passed to or from other methods.

Value

door.choices should equal goats + cars from other functions.

Examples

1
2
3
4
5
## Randomly selects doors 1, 2, or 3
select_door_orig()

## Randomly chooses one of the total number of doors.
select_door(15)

ndavis4904/MontyHall documentation built on Sept. 10, 2021, 11:04 a.m.