Fetches a copy of roster data from nflfastr's data repository. The same input/output as nflfastr's fast_scraper_roster function.
Arguments
- seasons
A numeric vector of seasons, earliest of which is 1999. TRUE returns all seasons, NULL returns latest season.
Value
Data frame where each individual row represents a player in the roster of the given team and season
Details
If you have any issues with the output of this data, please open an issue in the nflfastr repository.
Examples
# \donttest{
try( # try only shown here because sometimes CRAN checks are weird
nflfastr_rosters(seasons = 2019:2020)
)
#> ── nflverse roster data ────────────────────────────────────────────────────────
#> ℹ Data updated: 2022-08-18 20:01:49 UTC
#> # A tibble: 6,428 × 36
#> season team position depth_chart_po…¹ jerse…² status full_…³ first…⁴ last_…⁵
#> <int> <chr> <chr> <chr> <int> <chr> <chr> <chr> <chr>
#> 1 2019 ARI DB CB 21 Active Patric… Patrick Peters…
#> 2 2019 ARI DB SS 38 Active Chris … Ayorun… Banjo
#> 3 2019 ARI DB CB 23 NA Robert… Robert Alford
#> 4 2019 ARI DB CB 27 NA Josh S… Josh Shaw
#> 5 2019 ARI DB CB 26 NA Brando… Brandon Willia…
#> 6 2019 ARI DB FS 28 Active Charle… Charles Washin…
#> 7 2019 ARI DB CB 34 NA Duke T… Duke Thomas
#> 8 2019 ARI DB CB 27 NA Kevin … Kevin Peters…
#> 9 2019 ARI DB CB 22 NA Trevor… Trevor Willia…
#> 10 2019 ARI DB CB 22 NA Trevor… Trevor Willia…
#> # … with 6,418 more rows, 27 more variables: birth_date <date>, height <chr>,
#> # weight <int>, college <chr>, gsis_id <chr>, espn_id <chr>,
#> # sportradar_id <chr>, yahoo_id <chr>, rotowire_id <chr>, pff_id <chr>,
#> # pfr_id <chr>, fantasy_data_id <chr>, sleeper_id <chr>, years_exp <int>,
#> # headshot_url <chr>, ngs_position <chr>, week <int>, game_type <chr>,
#> # status_description_abbr <chr>, football_name <chr>, esb_id <chr>,
#> # gsis_it_id <chr>, smart_id <chr>, entry_year <int>, rookie_year <int>, …
# }