powered by
Load Player Level Weekly Stats
load_player_stats(...)
A tibble of week-level player statistics that aims to match NFL official box scores.
Arguments passed on to nflreadr::load_player_stats
nflreadr::load_player_stats
seasons
a numeric vector of seasons to return, defaults to most recent season. If set to TRUE, returns all available data.
TRUE
stat_type
one of "offense", "defense", or "kicking"
"offense"
"defense"
"kicking"
file_type
One of c("rds", "qs", "csv", "parquet"). Can also be set globally with options(nflreadr.prefer)
c("rds", "qs", "csv", "parquet")
options(nflreadr.prefer)
The function calculate_player_stats() and the corresponding examples on the nflfastR website
calculate_player_stats()
# \donttest{ try({# to avoid CRAN test problems stats <- load_player_stats() dplyr::glimpse(stats) }) # }
Run the code above in your browser using DataLab