Learn R Programming

ffsimulator (version 1.2.3)

ffs_repeat_schedules: Repeat fantasy schedules

Description

This function repeats an actual ffs_schedule() by the appropriate number of seasons.

Usage

ffs_repeat_schedules(actual_schedule, n_seasons)

Value

a dataframe of schedules for the simulation

Arguments

actual_schedule

a schedule retrieved by ffs_schedule()

n_seasons

number of seasons to simulate, default = 100

See Also

vignette("Custom Simulations") for example usage

Examples

Run this code
# \donttest{
try({ # try block to prevent CRAN-related issues
conn <- .ffs_cache("mfl_conn.rds") # cached connection
actual_schedule <- ffs_schedule(conn)

ffs_repeat_schedules(actual_schedule = actual_schedule, n_seasons = 10)
})
# }

Run the code above in your browser using DataLab