Skip to contents

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

Usage

load_depth_charts(seasons = most_recent_season())

Arguments

seasons

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

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

# \donttest{
try({ # prevents cran errors
  load_depth_charts(2020)
})
#> ── nflverse weekly depth charts ────────────────────────────────────────────────
#>  Data updated: 2022-03-10 17:52:41 UTC
#> # A tibble: 36,168 × 13
#>    season  week team  season_type position depth_chart_pos… formation depth_team
#>     <int> <int> <chr> <chr>       <chr>    <chr>            <chr>          <int>
#>  1   2020     1 ATL   REG         RB       "HB"             Offense            2
#>  2   2020     1 ATL   REG         FB       "\n    "         Offense            3
#>  3   2020     1 ATL   REG         DT       "DT"             Defense            1
#>  4   2020     1 ATL   REG         DT       "DT"             Defense            2
#>  5   2020     1 ATL   REG         FS       "S"              Defense            2
#>  6   2020     1 ATL   REG         K        "K"              Special …          1
#>  7   2020     1 ATL   REG         K        "KO"             Special …          1
#>  8   2020     1 ATL   REG         WR       "WR"             Offense            1
#>  9   2020     1 ATL   REG         QB       "QB"             Offense            2
#> 10   2020     1 ATL   REG         RB       "HB"             Offense            3
#> # … with 36,158 more rows, and 5 more variables: jersey_number <int>,
#> #   full_name <chr>, first_name <chr>, last_name <chr>, gsis_id <chr>
# }