powered by
This function simulates a single upcoming week using the same methodology as in the season-long simulation, ff_simulate().
ff_simulate()
ff_simulate_week( conn, n = 1000, best_ball = FALSE, seed = NULL, base_seasons = 2012:2020, actual_schedule = TRUE, replacement_level = FALSE, pos_filter = c("QB", "RB", "WR", "TE", "K"), verbose = NULL, return = c("default", "all") )
an ff_simulation object which can be passed to plot() and contains the output data from the simulation.
ff_simulation
plot()
an connection to a league made with ff_connect() and friends (required)
ff_connect()
number of times to simulate the upcoming week, default is 1000
a logical: are weekly wins based on optimal lineups?
an integer to control reproducibility
a numeric vector that selects seasons as base data, earliest available is 2012
a logical: use actual ff_schedule? default is TRUE
a logical: use best available on waiver as replacement level? defaults to FALSE for upcoming week simulations
a character vector of positions to filter/run, default is c("QB","RB","WR","TE","K")
a logical: print status messages? default is TRUE, configure with options(ffsimulator.verbose)
one of c("default", "all") - what objects to return in the output list
vignette("basic") for example usage
vignette("basic")
vignette("custom") for examples on using the subfunctions for your own processes.
vignette("custom")
# \donttest{ try({ # try block to prevent CRAN-related issues conn <- mfl_connect(2021, 22627) ff_simulate_week(conn, n = 1000, actual_schedule = TRUE) }) # }
Run the code above in your browser using DataLab