ffs_adp_outcomes: Connects ff_scoringhistory to past ADP rankings

View source: R/1_outcomes.R

ffs_adp_outcomesR Documentation

Connects ff_scoringhistory to past ADP rankings

Description

The backbone of the ffsimulator resampling process is coming up with a population of weekly outcomes for every preseason positional rank. This function creates that dataframe by connecting historical FantasyPros.com rankings to nflfastR-based scoring data, as created by ffscrapr::ff_scoringhistory().

Usage

ffs_adp_outcomes(
  scoring_history,
  gp_model = "simple",
  pos_filter = c("QB", "RB", "WR", "TE")
)

Arguments

scoring_history

a scoring history table as created by ffscrapr::ff_scoringhistory()

gp_model

either "simple" or "none" - simple uses the average games played per season for each position/adp combination, none assumes every game is played.

pos_filter

a character vector: filter the positions returned to these specific positions, default: c("QB","RB","WR","TE)

Value

a dataframe with position, rank, probability of games played, and a corresponding nested list per row of all week score outcomes.

See Also

fp_rankings_history for the included historical rankings

fp_injury_table for the historical injury table

vignette("custom") for usage details.

Examples


# cached data
scoring_history <- .ffs_cache("mfl_scoring_history.rds")

ffs_adp_outcomes(scoring_history, gp_model = "simple")
ffs_adp_outcomes(scoring_history, gp_model = "none")



ffsimulator documentation built on Feb. 16, 2023, 5:37 p.m.