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)
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
.for_cran()
# \donttest{
try({ # prevents cran errors
load_contracts()
})
#> ── nflverse Historical Contract Data from OverTheCap.com ───────────────────────
#> ℹ Data updated: 2023-10-11 07:17:23 UTC
#> # A tibble: 38,229 × 24
#> player position team is_active year_signed years value apy guaranteed
#> <chr> <chr> <chr> <lgl> <int> <int> <dbl> <dbl> <dbl>
#> 1 Joe Burrow QB Beng… TRUE 2023 5 275 55 219.
#> 2 Aaron Rodg… QB GB/N… FALSE 2022 5 151. 50.3 151.
#> 3 Josh Allen QB Bills TRUE 2021 6 258 43 150
#> 4 Russell Wi… QB Bron… TRUE 2022 5 245 49 165
#> 5 Justin Her… QB Char… TRUE 2023 5 262. 52.5 194.
#> 6 Lamar Jack… QB Rave… TRUE 2023 5 260 52 185
#> 7 Patrick Ma… QB Chie… TRUE 2020 10 450 45 141
#> 8 Jalen Hurts QB Eagl… TRUE 2023 5 255 51 179.
#> 9 Kyler Murr… QB Card… TRUE 2022 5 230. 46.1 160
#> 10 Deshaun Wa… QB Brow… TRUE 2022 5 230 46 230
#> # ℹ 38,219 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>
# }