ffs_summarise_week | R Documentation |
These functions are used to summarise the simulation outputs, typically by joining the optimal scores with a matching schedule.
ffs_summarise_week(optimal_scores, schedules) ffs_summarise_season(summary_week) ffs_summarise_simulation(summary_season) ffs_summarise_inseason(summary_week, n) ffs_summarize_week(optimal_scores, schedules) ffs_summarize_season(summary_week) ffs_summarize_simulation(summary_season)
optimal_scores |
a dataframe of optimized lineups as created by |
schedules |
a dataframe of schedules as created by |
summary_week |
a dataframe as created by |
summary_season |
a dataframe as created by |
n |
number of weeks |
ffs_summarise_week: a dataframe summarising team results by simulation week
ffs_summarise_season: a dataframe summarising franchise results across each simulation season
ffs_summarise_simulation: a dataframe summarising franchise results across the simulation
ffs_summarise_inseason: a dataframe summarising franchise results for the inseason simulation
vignette("custom")
for example usage
# cached examples optimal_scores <- .ffs_cache("optimal_scores.rds") schedules <- .ffs_cache("schedules.rds") summary_week <- ffs_summarise_week(optimal_scores, schedules) summary_week summary_season <- ffs_summarise_season(summary_week) summary_season summary_simulation <- ffs_summarise_simulation(summary_season) summary_simulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.