play_n_games: Game Set-Up.

Description Usage Arguments Details Value Examples

View source: R/montyhall.R

Description

play_n_games() game set-up.

Usage

1
play_n_games(n = 100)

Arguments

for,

table, round and print arguments are used by the function.

Details

Return a data frame that contains results from one game, then use a loop to build a simulation that plays the game 100 times, and create a table to report the results.

Value

The function returns table to report the results.

Examples

1

Sanaz-27/montyhall documentation built on Dec. 18, 2021, 12:56 p.m.