View source: R/4_projections.R
ffs_generate_projections | 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( adp_outcomes, latest_rankings, n_seasons = 100, weeks = 1:14, rosters = NULL )
adp_outcomes |
a dataframe of adp-based weekly outcomes, as created by |
latest_rankings |
a dataframe of rankings, as created by |
n_seasons |
number of seasons, default is 100 |
weeks |
a numeric vector of weeks to simulate, defaults to 1:14 |
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 <- .ffs_cache("adp_outcomes.rds") latest_rankings <- .ffs_cache("latest_rankings.rds") ffs_generate_projections(adp_outcomes, latest_rankings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.