Skip to contents

Loads depth charts for each NFL team for each week back to 2001.

Usage

load_depth_charts(
  seasons = most_recent_season(),
  file_type = getOption("nflreadr.prefer", default = "rds")
)

Arguments

seasons

a numeric vector specifying what seasons to return, if TRUE returns all available data. Defaults to latest season.

file_type

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

Value

A tibble of week-level depth charts for each team.

See also

https://nflreadr.nflverse.com/articles/dictionary_depth_charts.html for a web version of the dictionary

dictionary_depth_charts for the data dictionary as bundled within the package

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

Examples

.for_cran()
# \donttest{
try({ # prevents cran errors
  load_depth_charts(2020)
})
#> ── nflverse depth charts ───────────────────────────────────────────────────────
#>  Data updated: 2022-08-02 01:40:11 UTC
#> # A tibble: 36,168 × 15
#>    season club_code  week game_type depth_team last_name first_name
#>     <dbl> <chr>     <dbl> <chr>     <chr>      <chr>     <chr>     
#>  1   2020 ATL           1 REG       2          Schaub    Matt      
#>  2   2020 ATL           2 REG       2          Schaub    Matt      
#>  3   2020 ATL           3 REG       2          Schaub    Matt      
#>  4   2020 ATL           4 REG       2          Schaub    Matt      
#>  5   2020 ATL           5 REG       2          Schaub    Matt      
#>  6   2020 ATL           6 REG       2          Schaub    Matt      
#>  7   2020 ATL           7 REG       2          Schaub    Matt      
#>  8   2020 ATL           8 REG       2          Schaub    Matt      
#>  9   2020 ATL           9 REG       2          Schaub    Matt      
#> 10   2020 ATL          10 REG       2          Schaub    Matt      
#> # ℹ 36,158 more rows
#> # ℹ 8 more variables: football_name <chr>, formation <chr>, gsis_id <chr>,
#> #   jersey_number <chr>, position <chr>, elias_id <chr>, depth_position <chr>,
#> #   full_name <chr>
# }