This release of ffsimulator adds new features and refactors a lot of the backend for improved calculation efficiency.
ff_simulate_week()is a new function (and supporting internal function family) that simulates upcoming inseason weeks with daily-updated upcoming week ranks.
actual_scheduleargument to simulate actual schedule + unplayed games.
verboseargument that is set ON by default and can also be turned off with
options(ffsimulator.verbose = FALSE)
ffs_copy_template()helps build custom simulations by copying a template of starter code to a desired filepath.
Many backend changes - some are breaking (grimaces and points at the experimental badge).
ffs_score_rosters(), and more are now written in data.table - this helps improve speed for all sizes of simulations.
injury_modelargument is now renamed to
gp_model. BREAKING - argument name changed.
autoplot()refactored to hide legend and axis titles via geom/scale and not via theme - this allows for much easier theming (since you can apply a whole new theme via
ffs_build_schedules()now matches syntax from
opponent_id- BREAKING - output column names changed.
ffs_build_schedules()is now responsible for joining franchises to the schedule, and not
ffs_summarise_week(), and now takes a franchises dataframe as created by
ffs_repeat_schedules()supports the actual_schedule feature by repeating it by
Immensely grateful to everyone who used and shared the first release of this package - it’s been very motivating! Special thanks to @JoeSydlowski, @topfunky, @mrcaseb for their contributions and feedback.
ffsimulator package uses bootstrap resampling to run fantasy football season simulations supported by historical rankings and nflfastR data, calculating optimal lineups, and returning aggregated results.
This initial release introduces two major functions:
and also introduces a suite of subfunctions that power the main simulation, mostly prefixed with
Finally, this first version includes two dataframes:
fp_rankings_historyprovides historical expert consensus rankings from 2012-2020
fp_injury_tablecalculates the odds of a player playing in any given game
Other features developed for initial release include:
ffs_adp_outcomes()bins together nearby ranks to broaden the bootstrapping sample
Features postponed to subsequent versions: