Pulling advanced stats for offensive positions will allow for creating a dataframe with a complete overview on players performance throughout the season. Functions to create data frames for QB/RB/WR/TE will allow for future development on analyses, figures, tables, etc. with minimal data manipulation and/or wrangling.
DESIGN
Utilize functions from nflreadr to pull advanced stats for offensive positions QB/RB/WR/TE.
NFL Next Gen Stats (NGS) for "passing", "rushing" and "receiving"
This will add new functionality on obtaining player advanced stats. In addition, it will build upon obtaining play-by-play data and combining it with advanced stats for a complete overview of player stats for a season.
ROADMAP
[ ] Create function for pulling QB NFL NGS
[ ] Create function for pulling RB NFL NGS
[ ] Create function for pulling WR NFL NGS
[ ] Create function for pulling TE NFL NGS
[ ] Create function for pulling QB PFR Advanced Stats
[ ] Create function for pulling RB PFR Advanced Stats
[ ] Create function for pulling WR PFR Advanced Stats
[ ] Create function for pulling TE PFR Advanced Stats
[ ] Create function to combine QB play-by-play stats, NFL NGS, and PFR advanced stats
[ ] Create function to combine RB play-by-play stats, NFL NGS, and PFR advanced stats
[ ] Create function to combine WR play-by-play stats, NFL NGS, and PFR advanced stats
[ ] Create function to combine TE play-by-play stats, NFL NGS, and PFR advanced stats
REASON
Pulling advanced stats for offensive positions will allow for creating a dataframe with a complete overview on players performance throughout the season. Functions to create data frames for QB/RB/WR/TE will allow for future development on analyses, figures, tables, etc. with minimal data manipulation and/or wrangling.
DESIGN
Utilize functions from
nflreadr
to pull advanced stats for offensive positions QB/RB/WR/TE.nflreadr::load_nextgen_stats
summary_level = "season"
for season stats (for now, add weeks later)nflreadr::load_pfr_advstats
roxygen2
See more information on nflreadr functions in nflreadr Package Index.
IMPACT
This will add new functionality on obtaining player advanced stats. In addition, it will build upon obtaining play-by-play data and combining it with advanced stats for a complete overview of player stats for a season.
ROADMAP