Skip to contents

Returns week level rosters (rather than latest for a given season as returned by load_rosters())

Usage

load_rosters_weekly(
  seasons = most_recent_season(roster = TRUE),
  file_type = getOption("nflreadr.prefer", default = "rds")
)

Arguments

seasons

a numeric vector of seasons to return, defaults to returning this year's data if it is March or later. If set to TRUE, will return all available data. Data available back to 2002.

file_type

One of c("rds", "qs", "csv", "parquet"). Can also be set globally with options(nflreadr.prefer)

Value

A tibble of weekly roster data.

See also

Issues with this data should be filed here: https://github.com/nflverse/nflverse-data

Examples

# \donttest{
try({ # prevents cran errors
  load_rosters_weekly(2020)
})
#> ── nflverse weekly roster data ─────────────────────────────────────────────────
#>  Data updated: 2022-08-03 16:15:30 UTC
#> # A tibble: 44,130 × 36
#>    season game_type  week curre…¹ displ…² esb_id first…³ footb…⁴ gsis_id gsis_…⁵
#>     <int> <chr>     <int> <chr>   <chr>   <chr>  <chr>   <chr>   <chr>   <chr>  
#>  1   2020 REG           1 3800    Larry … FIT43… Larry   Larry   00-002… 28955  
#>  2   2020 REG           1 3800    Andy L… LEE00… Andy    Andy    00-002… 29141  
#>  3   2020 REG           1 3800    Clinto… MCD24… Clinton Clinton 00-002… 34700  
#>  4   2020 REG           1 3800    Corey … PET09… Corey   Corey   00-002… 35522  
#>  5   2020 REG           1 3800    Patric… PET41… Patrick Patrick 00-002… 37078  
#>  6   2020 REG           1 3800    Brooks… REE15… Brooks  Brooks  00-002… 37117  
#>  7   2020 REG           1 3800    Marcus… GIL11… Marcus  Marcus  00-002… 37138  
#>  8   2020 REG           1 3800    Charle… CLA71… Charles Charles 00-002… 37249  
#>  9   2020 REG           1 3800    Dre Ki… KIR62… D'Andre Dre     00-002… 38547  
#> 10   2020 REG           1 3800    Chandl… JON15… Chandl… Chandl… 00-002… 38551  
#> # … with 44,120 more rows, 26 more variables: headshot <chr>, height <chr>,
#> #   jersey_number <int>, last_name <chr>, depth_chart_position <chr>,
#> #   position <chr>, short_name <chr>, status <chr>, suffix <chr>,
#> #   team_abbr <chr>, weight <int>, college_conference <chr>,
#> #   college_name <chr>, draft_club <chr>, draft_number <int>, entry_year <int>,
#> #   rookie_year <int>, status_description_abbr <chr>,
#> #   status_short_description <chr>, uniform_number <chr>, ngs_position <chr>, …
#> # ℹ Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names
# }