Skip to contents

Runs multiple season simulations and aggregates the results.

Usage

simulate_season_n(fixtures, n_simulations = 1000, seed = NULL, progress = TRUE)

Arguments

fixtures

Data frame. Season fixtures from get_season_fixtures()

n_simulations

Integer. Number of simulations to run

seed

Integer. Random seed for reproducibility (optional)

progress

Logical. Show progress bar (default TRUE)

Value

Data frame with aggregated probabilities per team

Examples

if (FALSE) { # \dontrun{
conn <- get_db_connection(read_only = TRUE)
fixtures <- get_season_fixtures("Indian Premier League", "2024", conn)
results <- simulate_season_n(fixtures, n_simulations = 1000, seed = 42)
DBI::dbDisconnect(conn, shutdown = TRUE)
} # }