powered by
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 )
a dataframe of weekly scores for each player in the simulation, approximately of length n_seasons x n_weeks x latest_rankings
a dataframe of adp-based weekly outcomes, as created by ffs_adp_outcomes()
ffs_adp_outcomes()
a dataframe of rankings, as created by ffs_latest_rankings()
ffs_latest_rankings()
number of seasons, default is 100
a numeric vector of weeks to simulate, defaults to 1:14
a dataframe of rosters, as created by ffs_rosters() - optional, reduces computation to just rostered players
ffs_rosters()
vignette("custom") for example usage
# \donttest{ # cached examples adp_outcomes <- .ffs_cache("adp_outcomes.rds") latest_rankings <- .ffs_cache("latest_rankings.rds") ffs_generate_projections(adp_outcomes, latest_rankings) # }
Run the code above in your browser using DataLab