load_player_stats {nflreadr} | R Documentation |
Load Player Level Weekly Stats
Description
Load Player Level Weekly Stats
Usage
load_player_stats(
seasons = most_recent_season(),
stat_type = c("offense", "defense", "kicking"),
file_type = getOption("nflreadr.prefer", default = "rds")
)
Arguments
seasons |
a numeric vector of seasons to return, defaults to most recent season. If set to |
stat_type |
one of |
file_type |
One of |
Value
A tibble of week-level player statistics that aims to match NFL official box scores.
See Also
https://nflreadr.nflverse.com/articles/dictionary_player_stats.html for a web version of the data dictionary
dictionary_player_stats
for the data dictionary
Issues with this data should be filed here: https://github.com/nflverse/nflverse-pbp
Examples
try({ # prevents cran errors
load_player_stats()
load_player_stats(stat_type = "kicking")
})
[Package nflreadr version 1.4.1 Index]