Given years return a dataset with each player listed as part of the roster.
fast_scraper_roster(seasons, pp = FALSE)
A vector of 4-digit years associated with given NFL seasons
Logical - either TRUE
or FALSE
(see details for further information)
Data frame where each individual row represents a player in the roster of the given team and season containing the following information:
4 digit season year.
Team abbreviation.
Abbreviation of the player's position (e.g. "QB", "WR", "RB", "CB"...).
Starting with the 2020 season: the abbreviation of the players depth_chart_position.
The player's 2 digit jersey number.
String indicating the status of the player (e.g. "Active", "Inactive", "Injured Reserve"...) at the update time update_dt
(see below)
Full name of the player.
First name of the player.
Last name of the player.
Birth date of the player.
Height of the player.
Weight of the player.
Name of the college the player has attended.
Name of the High School the player has attended (only non-NA for players who were listed in the 2020 season).
The player's NFL GSIS ID, which can be used to link the player to play-by-play data.
The player's ESPN ID (only non-NA for players who were listed in the 2020 season).
The player's Sportradar ID (only non-NA for players who were listed in the 2020 season).
The player's Yahoo Sports ID (only non-NA for players who were listed in the 2020 season).
The player's Rotowire ID (only non-NA for players who were listed in the 2020 season).
Date and time when the current entry was last updated (starting with the 2020 season).
URL to a player image (starting in the 2020 season on ESPN servers).
The roster data is accessed via the free to use Sleeper API.
The pp
parameter controls if the scraper should use parallel processing.
Please note that the initiating process takes a few seconds which means it
may be better to set pp = FALSE
if you are scraping just a few seasons.
# NOT RUN {
# Roster of the 2019 and 2020 seasons
fast_scraper_roster(2019:2020)
# }
Run the code above in your browser using DataLab