Skip to contents

Loads player contracts from OverTheCap.com

Usage

load_contracts(file_type = getOption("nflreadr.prefer", default = "rds"))

Arguments

file_type

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

Value

A tibble of active and non-active NFL player contracts.

See also

https://overthecap.com/contract-history for a web version of the data

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

dictionary_contracts for the data dictionary as bundled within the package

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

Examples

# \donttest{
try({ # prevents cran errors
  load_contracts()
})
#> ── nflverse Historical Contract Data from OverTheCap.com ───────────────────────
#>  Data updated: 2023-05-12 07:15:56 UTC
#> # A tibble: 36,319 × 24
#>    player      position team  is_active year_signed years value   apy guaranteed
#>    <chr>       <chr>    <chr> <lgl>           <int> <int> <dbl> <dbl>      <dbl>
#>  1 Aaron Rodg… QB       GB/N… TRUE             2022     5  151.  50.3       151.
#>  2 Josh Allen  QB       Bills TRUE             2021     6  258   43         150 
#>  3 Russell Wi… QB       Bron… TRUE             2022     5  245   49         165 
#>  4 Lamar Jack… QB       Rave… TRUE             2023     5  260   52         185 
#>  5 Patrick Ma… QB       Chie… TRUE             2020    10  450   45         141 
#>  6 Jalen Hurts QB       Eagl… TRUE             2023     5  255   51         179.
#>  7 Kyler Murr… QB       Card… TRUE             2022     5  230.  46.1       160 
#>  8 Deshaun Wa… QB       Brow… TRUE             2022     5  230   46         230 
#>  9 Dak Presco… QB       Cowb… TRUE             2021     4  160   40         126 
#> 10 Deshaun Wa… QB       Texa… FALSE            2020     4  156   39         112.
#> # ℹ 36,309 more rows
#> # ℹ 15 more variables: apy_cap_pct <dbl>, inflated_value <dbl>,
#> #   inflated_apy <dbl>, inflated_guaranteed <dbl>, player_page <chr>,
#> #   otc_id <int>, date_of_birth <chr>, height <chr>, weight <chr>,
#> #   college <chr>, draft_year <int>, draft_round <int>, draft_overall <int>,
#> #   draft_team <chr>, cols <list>
# }