View source: R/4_projections_week.R
ffs_generate_projections_week | R Documentation |
Runs the bootstrapped resampling of player week outcomes on the latest rankings and rosters for a given number of seasons and weeks per season.
ffs_generate_projections_week( adp_outcomes, latest_rankings, n = 1000, rosters = NULL )
adp_outcomes |
a dataframe of adp-based weekly outcomes, as created by |
latest_rankings |
a dataframe of rankings, as created by |
n |
number of weeks to simulate |
rosters |
a dataframe of rosters, as created by |
a dataframe of weekly scores for each player in the simulation, approximately of length n_seasons x n_weeks x latest_rankings
vignette("custom") for example usage
# cached examples adp_outcomes_week <- .ffs_cache("adp_outcomes_week.rds") latest_rankings_week <- .ffs_cache("latest_rankings_week.rds") ffs_generate_projections_week(adp_outcomes_week, latest_rankings_week)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.